]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - config/httpd/vhosts.d/captive.conf
captive: Update configuration for Apache 2.4
[people/pmueller/ipfire-2.x.git] / config / httpd / vhosts.d / captive.conf
1 Listen 1013
2
3 <VirtualHost *:1013>
4 DocumentRoot /srv/web/ipfire/html/captive
5
6 # Close all connections as soon as a reply has been sent.
7 # Most browsers open loads of connections which then causes
8 # the access page being loaded again after a correct coupon
9 # code was entered.
10 KeepAlive Off
11
12 ScriptAlias /cgi-bin/ /srv/web/ipfire/cgi-bin/captive/
13 Alias /assets/ /srv/web/ipfire/html/captive/assets/
14
15 Alias /favicon.ico /srv/web/ipfire/html/captive/assets/favicon.ico
16
17 # All unknown URIs will be redirected to the first
18 # redirector script.
19 ScriptAliasMatch .* /srv/web/ipfire/cgi-bin/captive/redirect.cgi
20
21 <Directory /srv/web/ipfire/cgi-bin/captive>
22 Options ExecCGI
23 Require all granted
24 </Directory>
25
26 <Directory /srv/web/ipfire/html/captive>
27 Options +FollowSymlinks
28 Require all granted
29 </Directory>
30 </VirtualHost>