]>
Commit | Line | Data |
---|---|---|
90c973a6 MT |
1 | <VirtualHost *:81> |
2 | ||
d733119b | 3 | DocumentRoot /srv/web/ipfire/html |
90c973a6 MT |
4 | |
5 | RewriteEngine on | |
6 | RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK|OPTIONS) | |
7 | RewriteRule .* - [F] | |
8 | ||
0cabaf35 | 9 | Header always set X-Content-Type-Options nosniff |
eb6d7151 | 10 | Header always set Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'" |
0cabaf35 | 11 | |
d733119b | 12 | <Directory /srv/web/ipfire/html> |
90c973a6 MT |
13 | Options ExecCGI |
14 | AllowOverride None | |
d41fe99f | 15 | Require all granted |
90c973a6 | 16 | </Directory> |
d733119b | 17 | <DirectoryMatch "/srv/web/ipfire/html/(graphs|sgraph)"> |
6c6c1e3f PM |
18 | Options SymLinksIfOwnerMatch |
19 | RewriteEngine on | |
20 | RewriteCond %{HTTPS} off | |
21 | RewriteRule (.*) https://%{SERVER_NAME}:444/$1 [R=301,L] | |
90c973a6 | 22 | </DirectoryMatch> |
d733119b MT |
23 | ScriptAlias /cgi-bin/ /srv/web/ipfire/cgi-bin/ |
24 | <Directory /srv/web/ipfire/cgi-bin> | |
6c6c1e3f PM |
25 | Options SymLinksIfOwnerMatch |
26 | RewriteEngine on | |
27 | RewriteCond %{HTTPS} off | |
28 | RewriteRule (.*) https://%{SERVER_NAME}:444/$1 [R=301,L] | |
90c973a6 | 29 | </Directory> |
381f2e71 | 30 | Alias /updatecache/ /var/updatecache/ |
e9007fef CS |
31 | <Directory /var/updatecache> |
32 | Options ExecCGI | |
33 | AllowOverride None | |
d41fe99f | 34 | Require all granted |
e9007fef CS |
35 | </Directory> |
36 | Alias /repository/ /var/urlrepo/ | |
37 | <Directory /var/urlrepo> | |
38 | Options ExecCGI | |
39 | AllowOverride None | |
d41fe99f | 40 | Require all granted |
e9007fef | 41 | </Directory> |
5af32f5c | 42 | Alias /wpad.dat /srv/web/ipfire/html/proxy.pac |
381f2e71 | 43 | </VirtualHost> |