Files
bpfire/config/httpd/vhosts.d/captive.conf
Michael Tremer 0a02d9bb0c captive-portal: Move CGI files to CGI directory
Previously the assets directory has ExecCGI privileges
which is not at all required and potentially dangerous.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-09-22 18:54:45 +01:00

26 lines
625 B
Plaintext

Listen 1013
<VirtualHost *:1013>
DocumentRoot /srv/web/ipfire/html/captive
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>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>