From 3aa44cbb40d81bc317576a5631a890fbd87d2071 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 29 Aug 2015 15:45:56 +0200 Subject: reproducible: use ssl cert for reproducible-builds.org donated by lamby --- .../etc/apache2/sites-available/jenkins.debian.net | 29 ++++++++++++++++------ 1 file changed, 22 insertions(+), 7 deletions(-) (limited to 'hosts/jenkins/etc/apache2/sites-available') diff --git a/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net b/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net index 50e7f944..af07ca90 100644 --- a/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net +++ b/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net @@ -32,9 +32,9 @@ NameVirtualHost *:443 - + SSLEngine on - SSLCertificateChainFile /etc/apache2/ssl/gsdomainvalsha2g2r1.crt + SSLCertificateChainFile /etc/apache2/ssl/$chainfile ServerName $name ServerAdmin holger@layer-acht.org @@ -92,7 +92,7 @@ Use common-debian-service-https-redirect reproducible.debian.net Use common-debian-service-https-redirect reproducible-builds.org - Use common-directives jenkins.debian.net + Use common-directives jenkins.debian.net gsdomainvalsha2g2r1.crt SSLCertificateFile /etc/apache2/ssl/jenkins.debian.net.pem DocumentRoot /var/www @@ -133,9 +133,6 @@ Use common-debian-service-https-redirect reproducible-builds.org RewriteCond %{REQUEST_URI} ^/userContent/rbuild/ RewriteRule ^/?(.*) https://reproducible.debian.net/$1 [R=301,L] - # redirects reproducible-builds.org to https://reproducible.debian.net - RewriteCond %{HTTP_HOST} reproducible-builds\.org - RewriteRule ^/?(.*) https://reproducible.debian.net/$1 [R=301,L] Require all granted @@ -156,7 +153,7 @@ Use common-debian-service-https-redirect reproducible-builds.org - Use common-directives reproducible.debian.net + Use common-directives reproducible.debian.net gsdomainvalsha2g2r1.crt SSLCertificateFile /etc/apache2/ssl/reproducible.debian.net.pem DocumentRoot /var/lib/jenkins/userContent/reproducible @@ -293,3 +290,21 @@ Use common-debian-service-https-redirect reproducible-builds.org + + + Use common-directives reproducible-builds.org startcom.crt + SSLCertificateFile /etc/apache2/ssl/reproducible-builds.org.pem + + DocumentRoot /var/lib/jenkins/userContent/reproducible + + # redirects reproducible-builds.org to https://reproducible.debian.net except for /specs/ and /howto/ + RewriteCond %{HTTP_HOST} reproducible-builds\.org + RewriteCond %{REQUEST_URI} !^/specs/$ + RewriteCond %{REQUEST_URI} !^/howto/$ + RewriteRule ^/?(.*) https://reproducible.debian.net/$1 [R=301,L] + + + Require all granted + + + -- cgit v1.2.3-70-g09d2