From a1fa48df5fd9084e3f9eb325d2ed0a9a29ff7935 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Sat, 20 Dec 2014 16:32:37 +0100 Subject: apache confs: redirect jenkins.d.n/userContent/reproducible.html to reproducible.d.n --- etc/apache2/sites-available/jenkins.debian.net | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etc/apache2/sites-available/jenkins.debian.net b/etc/apache2/sites-available/jenkins.debian.net index 43efdd0b..fe2fd6e7 100644 --- a/etc/apache2/sites-available/jenkins.debian.net +++ b/etc/apache2/sites-available/jenkins.debian.net @@ -97,6 +97,10 @@ NameVirtualHost *:443 RewriteCond %{QUERY_STRING} token RewriteRule ^ - [F] + RewriteCond %{HTTP_HOST} jenkins\.debian\.net + RewriteCond %{REQUEST_URI} ^/userContent/reproducible.html$ + RewriteRule ^/?(.*) https://reproducible.debian.net/$1 [R,L] + RewriteCond %{HTTP_HOST} reproducible\.debian\.net RewriteCond %{REQUEST_URI} ^/$ [or] RewriteCond %{REQUEST_URI} ^/userContent/$ -- cgit v1.2.3-70-g09d2