From cf777108b9ecaae7ad6a1a4cc907526d6d22dc1b Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 23 Feb 2018 23:00:47 +0100 Subject: [PATCH 1/1] Redirect all of *.pages to https (re: RT#7072) --- .../salsa/templates/apache-pages.debian.net.conf.erb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/modules/salsa/templates/apache-pages.debian.net.conf.erb b/modules/salsa/templates/apache-pages.debian.net.conf.erb index a39f4d69f..0f849ed0a 100644 --- a/modules/salsa/templates/apache-pages.debian.net.conf.erb +++ b/modules/salsa/templates/apache-pages.debian.net.conf.erb @@ -1,4 +1,14 @@ -Use common-debian-service-https-redirect * pages.debian.net + + ServerName pages.debian.net + ServerAlias *.pages.debian.net + ServerAdmin debian-admin@lists.debian.org + + CustomLog /var/log/apache2/pages.debian.net-access.log privacy + ErrorLog /var/log/apache2/pages.debian.net-error.log + + RewriteEngine On + RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] + ServerName pages.debian.net -- 2.20.1