Redirect old children-distros page to new derivatives page
[mirror/dsa-puppet.git] / modules / roles / templates / manpages / dyn.manpages.debian.org.erb
1 Use common-debian-service-https-redirect * dyn.manpages.debian.org
2
3 <VirtualHost *:443>
4         ServerName dyn.manpages.debian.org
5         ServerAdmin debian-admin@lists.debian.org
6
7         Use common-debian-service-ssl dyn.manpages.debian.org
8         Use common-ssl-HSTS
9         Use http-pkp-dyn.manpages.debian.org
10
11         ErrorLog /var/log/apache2/dyn.manpages.debian.org-error.log
12         CustomLog /var/log/apache2/dyn.manpages.debian.org-access.log privacy
13
14         DocumentRoot /srv/manpages.debian.org/www
15
16         <Directory /srv/manpages.debian.org/www>
17                 Require all granted
18                 AllowOverride none
19
20                 ExpiresActive On
21                 ExpiresDefault "access plus 1 hours"
22
23                 <Files ~ "^rwmap">
24                         Require all denied
25                 </Files>
26
27                 # To set the correct Content-Type (e.g. text/html).
28                 RemoveType .gz
29                 AddEncoding gzip gz
30                 FilterDeclare gzip CONTENT_SET
31                 FilterProvider gzip inflate "%{req:Accept-Encoding} !~ /gzip,.*gzip/"
32                 FilterChain gzip
33                 Options +Multiviews
34         </Directory>
35
36         <Location /auxserver/>
37                 ProxyPass "http://localhost:2431/"
38                 ProxyPassReverse "http://localhost:2431/"
39
40                 # Use the correct host in redirects
41                 Header edit Location "^/" "https://manpages.debian.org/"
42         </Location>
43
44         ErrorDocument 404 /auxserver%{REQUEST_URI}?%{QUERY_STRING}
45 </VirtualHost>
46
47 # vim:set syn=apache: