X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Ftemplates%2Fapache-www.debian.org.erb;h=f505aaee1060a677c5a08e0c44f06b50fe6e8ba8;hb=3ed94f1ce57fb84cc8d22a0f45d9fe11217135b7;hp=aaebe84d6fb07416de95cf2b4e59846cd21e1c9c;hpb=4857bcfb3256229f339fd34d2d5c75cce2012f5e;p=mirror%2Fdsa-puppet.git
diff --git a/modules/roles/templates/apache-www.debian.org.erb b/modules/roles/templates/apache-www.debian.org.erb
index aaebe84d6..f505aaee1 100644
--- a/modules/roles/templates/apache-www.debian.org.erb
+++ b/modules/roles/templates/apache-www.debian.org.erb
@@ -10,10 +10,7 @@
# Make sure that the srm.conf directive is commented out.
AddDefaultCharSet Off
AllowOverride AuthConfig FileInfo
- <% if @lsbmajdistrelease > '7' -%>
- Require all granted
- <% end -%>
-
+ Require all granted
# Serve icons as image/x-icon
AddType image/x-icon .ico
@@ -122,6 +119,9 @@
ServerAlias www.debian.fi
ServerAlias debian.fi
+ ServerAlias www.debian.nl
+ ServerAlias debian.nl
+
ServerAlias www.debian.com
ServerAlias debian.com
@@ -142,18 +142,19 @@
ServerAlias newwww.deb.at
DocumentRoot <%= wwwdo_document_root %>/
+ LogFormat "0.0.0.0 - %u %{[%d/%b/%Y:00:00:00 %z]}t \"%r\" %>s %b \"%{Referer}i\" \"-\" %V" privacy+host
ErrorLog /var/log/apache2/www-other.debian.org-error.log
- CustomLog /var/log/apache2/www-other.debian.org-access.log privacy
- #RewriteLog /var/log/apache2/www-other.debian.org-redirect.log
- #RewriteLogLevel 1
-
- RewriteEngine on
+ CustomLog /var/log/apache2/www-other.debian.org-access.log privacy+host
ServerName www.debian.org
ServerAdmin webmaster@debian.org
ServerAlias www-*.debian.org
+ <% if scope.function_onion_global_service_hostname(['www.debian.org']) -%>
+ ServerAlias <%= scope.function_onion_global_service_hostname(['www.debian.org']) %>
+ <% end %>
+
DocumentRoot <%= wwwdo_document_root %>/
# CacheNegotiatedDocs: By default, Apache sends Pragma: no-cache with each
@@ -222,6 +223,8 @@
RedirectPermanent /ports/ppc64 /ports/powerpc
RedirectPermanent /ports/ppc64el /ports/powerpc
RedirectPermanent /ports/powerpcspe /ports/powerpc
+ RedirectPermanent /mirror/official_sponsors /mirror/sponsors
+ RedirectPermanent /mirror/official /mirror/list
RedirectPermanent /mirror/mirrors_full.html /mirror/list-full.html
RedirectPermanent /mirrors /mirror
RedirectPermanent /News/project /News/weekly
@@ -281,16 +284,6 @@
- >
- Use common-www-other.d.o
- RewriteRule ^/(.*)$ http://www.debian.org/$1 [R=301,L]
-
- >
- Use common-www-other.d.o
- RewriteRule ^/(.*)$ https://www.debian.org/$1 [R=301,L]
-
-
-
>
ErrorLog /var/log/apache2/www.debian.org-error.log
CustomLog /var/log/apache2/www.debian.org-access.log privacy
@@ -308,16 +301,22 @@
+ >
+ Use common-www-other.d.o
+
+ ErrorLog /var/log/apache2/www-other.debian.org-error.log
+ CustomLog /var/log/apache2/www-other.debian.org-access.log privacy
+
+ Redirect permanent / http://www.debian.org/
+
>
- ServerName debian.org
- ServerAdmin webmaster@debian.org
+ Use common-www-other.d.o
CustomLog /var/log/apache2/www-other-access.log privacyssl
ErrorLog /var/log/apache2/www-other-error.log
Redirect permanent / https://www.debian.org/
-
- Use common-debian-service-ssl www.debian.org
+ Use common-debian-service-ssl debian.org
Use common-ssl-HSTS