]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - 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
CommitLineData
8b920789
AM
1Listen 1013
2
3<VirtualHost *:1013>
4 DocumentRoot /srv/web/ipfire/html/captive
8b920789 5
78148cc1
MT
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
4ddf4538 12 ScriptAlias /cgi-bin/ /srv/web/ipfire/cgi-bin/captive/
8b920789
AM
13 Alias /assets/ /srv/web/ipfire/html/captive/assets/
14
1d68e287 15 Alias /favicon.ico /srv/web/ipfire/html/captive/assets/favicon.ico
8b920789
AM
16
17 # All unknown URIs will be redirected to the first
18 # redirector script.
0a02d9bb 19 ScriptAliasMatch .* /srv/web/ipfire/cgi-bin/captive/redirect.cgi
8b920789 20
4ddf4538
MT
21 <Directory /srv/web/ipfire/cgi-bin/captive>
22 Options ExecCGI
fb96829a 23 Require all granted
8b920789 24 </Directory>
0a02d9bb
MT
25
26 <Directory /srv/web/ipfire/html/captive>
9b6227cc 27 Options +FollowSymlinks
fb96829a 28 Require all granted
0a02d9bb 29 </Directory>
8b920789 30</VirtualHost>