]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - config/httpd/vhosts.d/captive.conf
prevent IE from interpreting HTML MIME type
[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 Header always set X-Content-Type-Options nosniff
13
14 ScriptAlias /cgi-bin/ /srv/web/ipfire/cgi-bin/captive/
15 Alias /assets/ /srv/web/ipfire/html/captive/assets/
16
17 Alias /favicon.ico /srv/web/ipfire/html/captive/assets/favicon.ico
18
19 # All unknown URIs will be redirected to the first
20 # redirector script.
21 ScriptAliasMatch .* /srv/web/ipfire/cgi-bin/captive/redirect.cgi
22
23 <Directory /srv/web/ipfire/cgi-bin/captive>
24 Options ExecCGI
25 Require all granted
26 </Directory>
27
28 <Directory /srv/web/ipfire/html/captive>
29 Options +FollowSymlinks
30 Require all granted
31 </Directory>
32 </VirtualHost>