]> git.ipfire.org Git - ipfire-2.x.git/blob - config/httpd/vhosts.d/ipfire-interface.conf
redirect to TLS WebUI if authorisation required
[ipfire-2.x.git] / config / httpd / vhosts.d / ipfire-interface.conf
1 <VirtualHost *:81>
2
3 DocumentRoot /srv/web/ipfire/html
4
5 RewriteEngine on
6 RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK|OPTIONS)
7 RewriteRule .* - [F]
8
9 <Directory /srv/web/ipfire/html>
10 Options ExecCGI
11 AllowOverride None
12 Require all granted
13 </Directory>
14 <DirectoryMatch "/srv/web/ipfire/html/(graphs|sgraph)">
15 Options SymLinksIfOwnerMatch
16 RewriteEngine on
17 RewriteCond %{HTTPS} off
18 RewriteRule (.*) https://%{SERVER_NAME}:444/$1 [R=301,L]
19 </DirectoryMatch>
20 ScriptAlias /cgi-bin/ /srv/web/ipfire/cgi-bin/
21 <Directory /srv/web/ipfire/cgi-bin>
22 Options SymLinksIfOwnerMatch
23 RewriteEngine on
24 RewriteCond %{HTTPS} off
25 RewriteRule (.*) https://%{SERVER_NAME}:444/$1 [R=301,L]
26 </Directory>
27 Alias /updatecache/ /var/updatecache/
28 <Directory /var/updatecache>
29 Options ExecCGI
30 AllowOverride None
31 Require all granted
32 </Directory>
33 Alias /repository/ /var/urlrepo/
34 <Directory /var/urlrepo>
35 Options ExecCGI
36 AllowOverride None
37 Require all granted
38 </Directory>
39 Alias /wpad.dat /srv/web/ipfire/html/proxy.pac
40 </VirtualHost>