From: Peter Palfrader Date: Wed, 1 Jan 2014 21:55:40 +0000 (+0100) Subject: Try new www vhost config X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=02cb714c5ba15f734c3f6d72520222677304555a;p=mirror%2Fdsa-puppet.git Try new www vhost config --- diff --git a/modules/roles/templates/apache-www.debian.org.erb b/modules/roles/templates/apache-www.debian.org.erb index a4a4e8dc2..aee7380b1 100644 --- a/modules/roles/templates/apache-www.debian.org.erb +++ b/modules/roles/templates/apache-www.debian.org.erb @@ -124,7 +124,9 @@ RewriteRule ^/(.*)$ http://www.debian.org/$1 [R=301,L] - > + + + ServerName www.debian.org ServerAdmin webmaster@debian.org ServerAlias www-*.debian.org @@ -243,5 +245,29 @@ # Canonical place for manuals under /doc/manuals/ RewriteCond %{DOCUMENT_ROOT}/doc/manuals/$1 -d RewriteRule ^/doc/([^/]+)/?(.*)? /doc/manuals/$1/$2 [L,R=301] + + + + > + Use common-www.d.o + + > + Use common-www.d.o + + Use common-debian-service-ssl www.debian.org + Use common-ssl-HSTS + + + + > + ServerName debian.org + ServerAdmin webmaster@debian.org + + CustomLog /var/log/apache2/www-other-access.log privacy + ErrorLog /var/log/apache2/www-other-error.log + + Redirect permanent / https://www.debian.org/ + Use common-debian-service-ssl www.debian.org + Use common-ssl-HSTS