From 225d899572f626a6c6a9e1724af0b23c555e3f82 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 7 Feb 2015 13:09:23 +0100 Subject: g-i: do not redirect to https if accessed as 127.0.0.1 or 10.0.2.1 - redudant but working configuration --- etc/apache2/sites-available/jenkins.debian.net | 54 ++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) (limited to 'etc/apache2/sites-available/jenkins.debian.net') diff --git a/etc/apache2/sites-available/jenkins.debian.net b/etc/apache2/sites-available/jenkins.debian.net index 60944dc5..736a1b59 100644 --- a/etc/apache2/sites-available/jenkins.debian.net +++ b/etc/apache2/sites-available/jenkins.debian.net @@ -1,6 +1,60 @@ NameVirtualHost *:80 NameVirtualHost *:443 + + ServerName 127.0.0.1 + ServerAdmin holger@layer-acht.org + CustomLog /var/log/apache2/access.log combined + ErrorLog /var/log/apache2/error.log + + Options Indexes FollowSymLinks MultiViews + AllowOverride None + Order allow,deny + allow from all + AddType text/plain .log + + + Order deny,allow + Allow from all + + ProxyPreserveHost on + AllowEncodedSlashes NoDecode + # proxy everything but a few urls + ProxyPass /server-status ! + # map /d-i-preseed-cfgs to /UserContent/d-i-preseed-cfgs + ProxyPass /d-i-preseed-cfgs/ http://localhost:8080/userContent/d-i-preseed-cfgs/ + ProxyPass /userContent ! + ProxyPass / http://localhost:8080/ nocanon + ProxyPassReverse / http://localhost:8080/ + + + ServerName 10.0.2.1 + ServerAdmin holger@layer-acht.org + CustomLog /var/log/apache2/access.log combined + ErrorLog /var/log/apache2/error.log + + Options Indexes FollowSymLinks MultiViews + AllowOverride None + Order allow,deny + allow from all + AddType text/plain .log + + + Order deny,allow + Allow from all + + ProxyPreserveHost on + AllowEncodedSlashes NoDecode + # proxy everything but a few urls + ProxyPass /server-status ! + # map /d-i-preseed-cfgs to /UserContent/d-i-preseed-cfgs + ProxyPass /d-i-preseed-cfgs/ http://localhost:8080/userContent/d-i-preseed-cfgs/ + ProxyPass /userContent ! + ProxyPass / http://localhost:8080/ nocanon + ProxyPassReverse / http://localhost:8080/ + + + ServerName $name -- cgit v1.2.3-70-g09d2