X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=modules%2Froles%2Ftemplates%2Fmanpages%2Fdyn.manpages.debian.org.erb;fp=modules%2Froles%2Ftemplates%2Fmanpages%2Fdyn.manpages.debian.org.erb;h=ea9237c65e67ab998c6bac4a65624a9b8f4c1075;hb=142d7dd48ee282fc7cab2c036327dca1f4d87b07;hp=0000000000000000000000000000000000000000;hpb=e7da273d6b360401f25b86d67515e143b04328b3;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/templates/manpages/dyn.manpages.debian.org.erb b/modules/roles/templates/manpages/dyn.manpages.debian.org.erb new file mode 100644 index 000000000..ea9237c65 --- /dev/null +++ b/modules/roles/templates/manpages/dyn.manpages.debian.org.erb @@ -0,0 +1,32 @@ +Use common-debian-service-https-redirect * dyn.manpages.debian.org + + + ServerName dyn.manpages.debian.org + ServerAdmin debian-admin@lists.debian.org + + Use common-debian-service-ssl dyn.manpages.debian.org + Use common-ssl-HSTS + Use http-pkp-dyn.manpages.debian.org + + ErrorLog /var/log/apache2/dyn.manpages.debian.org-error.log + CustomLog /var/log/apache2/dyn.manpages.debian.org-access.log privacy + + # URLs which end in a slash do not need to be rewritten + RewriteEngine on + RewriteRule ^(.*/)$ "https://manpages.debian.org$1" [R=307,L] + + # Redirect fully qualified URLs to the correct host. + RewriteCond "/srv/manpages.debian.org/www/%{REQUEST_FILENAME}" "-f" [OR] + RewriteCond "/srv/manpages.debian.org/www/%{REQUEST_FILENAME}.gz" "-f" + RewriteRule "^/(.*)" "https://manpages.debian.org/$1" [R=307,L] + + # Use the correct host in redirects + Header edit Location "^/" "https://manpages.debian.org/" + + + ProxyPass "http://localhost:2431/" + ProxyPassReverse "http://localhost:2431/" + + + +# vim:set syn=apache: