]> git.ipfire.org Git - ipfire-2.x.git/blob - config/httpd/vhosts.d/ipfire-interface.conf
openssl: Update to version 1.1.1a
[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 Header always set X-Content-Type-Options nosniff
10 Header always set Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'"
11
12 <Directory /srv/web/ipfire/html>
13 Options ExecCGI
14 AllowOverride None
15 Require all granted
16 </Directory>
17 <DirectoryMatch "/srv/web/ipfire/html/(graphs|sgraph)">
18 Options SymLinksIfOwnerMatch
19 RewriteEngine on
20 RewriteCond %{HTTPS} off
21 RewriteRule (.*) https://%{SERVER_NAME}:444/$1 [R=301,L]
22 </DirectoryMatch>
23 ScriptAlias /cgi-bin/ /srv/web/ipfire/cgi-bin/
24 <Directory /srv/web/ipfire/cgi-bin>
25 Options SymLinksIfOwnerMatch
26 RewriteEngine on
27 RewriteCond %{HTTPS} off
28 RewriteRule (.*) https://%{SERVER_NAME}:444/$1 [R=301,L]
29 </Directory>
30 Alias /updatecache/ /var/updatecache/
31 <Directory /var/updatecache>
32 Options ExecCGI
33 AllowOverride None
34 Require all granted
35 </Directory>
36 Alias /repository/ /var/urlrepo/
37 <Directory /var/urlrepo>
38 Options ExecCGI
39 AllowOverride None
40 Require all granted
41 </Directory>
42 Alias /wpad.dat /srv/web/ipfire/html/proxy.pac
43 </VirtualHost>