From 5ff8effb6bd628012063850038b74191d34a73c6 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 12 Dec 2018 14:03:15 +0100 Subject: [PATCH] Make a snapshot.debian.net vhost --- .../templates/snapshot/snapshot.debian.org.conf.erb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/roles/templates/snapshot/snapshot.debian.org.conf.erb b/modules/roles/templates/snapshot/snapshot.debian.org.conf.erb index e3d4c316b..d617c9f7f 100644 --- a/modules/roles/templates/snapshot/snapshot.debian.org.conf.erb +++ b/modules/roles/templates/snapshot/snapshot.debian.org.conf.erb @@ -44,6 +44,16 @@ WSGIDaemonProcess snapshot.debian.org user=nobody group=nogroup home=/ processes WSGIProcessGroup snapshot.debian.org + + ServerName snapshot.debian.net + ServerAdmin team@snapshot.debian.org + + ErrorLog /var/log/apache2/snapshot.debian.net-error.log + CustomLog /var/log/apache2/snapshot.debian.net-access.log combined + + RewriteRule ^/(.*)$ http://snapshot.debian.org/ [R] + + ServerName snapshots.debian.org RedirectPermanent / http://snapshot.debian.org/ -- 2.20.1