Files
bpfire/config/httpd/vhosts.d/captive.conf
Michael Tremer 78148cc1e5 captive: Run apache in HTTP/1.0 mode
Reported-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
Tested-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-09-22 19:00:04 +01:00

33 lines
869 B
Plaintext

Listen 1013
<VirtualHost *:1013>
DocumentRoot /srv/web/ipfire/html/captive
# Close all connections as soon as a reply has been sent.
# Most browsers open loads of connections which then causes
# the access page being loaded again after a correct coupon
# code was entered.
KeepAlive Off
ScriptAlias /cgi-bin/ /srv/web/ipfire/cgi-bin/captive/
Alias /assets/ /srv/web/ipfire/html/captive/assets/
ScriptAlias /favicon.ico /srv/web/ipfire/html/captive/assets/favicon.ico
# All unknown URIs will be redirected to the first
# redirector script.
ScriptAliasMatch .* /srv/web/ipfire/cgi-bin/captive/redirect.cgi
<Directory /srv/web/ipfire/cgi-bin/captive>
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
<Directory /srv/web/ipfire/html/captive>
Options +FollowSymlinks
Order allow,deny
Allow from all
</Directory>
</VirtualHost>