summaryrefslogtreecommitdiffstats
path: root/etc/apache2
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2014-12-20 16:32:37 +0100
committerHolger Levsen <holger@layer-acht.org>2014-12-21 09:47:03 +0100
commita1fa48df5fd9084e3f9eb325d2ed0a9a29ff7935 (patch)
treefa8ae6ed888fb961c58bbc6cd053775dac2bf087 /etc/apache2
parentafeadbcfbc1d6362783d34e5378b920990c0e4dd (diff)
downloadjenkins.debian.net-a1fa48df5fd9084e3f9eb325d2ed0a9a29ff7935.tar.xz
apache confs: redirect jenkins.d.n/userContent/reproducible.html to reproducible.d.n
Diffstat (limited to 'etc/apache2')
-rw-r--r--etc/apache2/sites-available/jenkins.debian.net4
1 files changed, 4 insertions, 0 deletions
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/$