summaryrefslogtreecommitdiffstats
path: root/hosts/jenkins/etc/apache2
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-08-29 15:45:56 +0200
committerHolger Levsen <holger@layer-acht.org>2015-08-29 15:45:56 +0200
commit3aa44cbb40d81bc317576a5631a890fbd87d2071 (patch)
treef8c9822bd5a687c9dadb96558dc1ac1454cccf5e /hosts/jenkins/etc/apache2
parente5c2841c37250d849b0f1ee1551689c6d6daef53 (diff)
downloadjenkins.debian.net-3aa44cbb40d81bc317576a5631a890fbd87d2071.tar.xz
reproducible: use ssl cert for reproducible-builds.org donated by lamby
Diffstat (limited to 'hosts/jenkins/etc/apache2')
-rw-r--r--hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net29
-rw-r--r--hosts/jenkins/etc/apache2/ssl/startcom.crt34
2 files changed, 56 insertions, 7 deletions
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
</VirtualHost>
</Macro>
-<Macro common-directives $name>
+<Macro common-directives $name $chainfile>
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
<VirtualHost *:443>
- 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]
<Proxy *>
Require all granted
@@ -156,7 +153,7 @@ Use common-debian-service-https-redirect reproducible-builds.org
<VirtualHost *:443>
- 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
</Proxy>
</VirtualHost>
+
+<VirtualHost *:443>
+ 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]
+
+ <Proxy *>
+ Require all granted
+ </Proxy>
+</VirtualHost>
+
diff --git a/hosts/jenkins/etc/apache2/ssl/startcom.crt b/hosts/jenkins/etc/apache2/ssl/startcom.crt
new file mode 100644
index 00000000..dbaeda6a
--- /dev/null
+++ b/hosts/jenkins/etc/apache2/ssl/startcom.crt
@@ -0,0 +1,34 @@
+-----BEGIN CERTIFICATE-----
+MIIF2TCCA8GgAwIBAgIHHKs2Ry2cUTANBgkqhkiG9w0BAQsFADB9MQswCQYDVQQG
+EwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjErMCkGA1UECxMiU2VjdXJlIERp
+Z2l0YWwgQ2VydGlmaWNhdGUgU2lnbmluZzEpMCcGA1UEAxMgU3RhcnRDb20gQ2Vy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