[Qa-jenkins-scm] [jenkins.debian.net] 03/07: apache: deduplicate SSLCertificateFile directive into the common-directives-ssl macro
Holger Levsen
holger at layer-acht.org
Fri Jun 16 09:32:29 UTC 2017
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch testing2stretch
in repository jenkins.debian.net.
commit 7cc29f300cf00189061f0a6a94ab77f7a2ad81b0
Author: Mattia Rizzolo <mattia at debian.org>
Date: Thu Jun 15 18:33:42 2017 +0200
apache: deduplicate SSLCertificateFile directive into the common-directives-ssl macro
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
.../apache2/sites-available/jenkins.debian.net.conf | 20 ++++++++------------
1 file changed, 8 insertions(+), 12 deletions(-)
diff --git a/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net.conf b/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net.conf
index e9b0fd7..bb3aef9 100644
--- a/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net.conf
+++ b/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net.conf
@@ -33,9 +33,10 @@ NameVirtualHost *:443
</VirtualHost>
</Macro>
-<Macro common-directives-ssl-key $keyfile>
+<Macro common-directives-ssl $name>
SSLEngine on
- SSLCertificateKeyFile /etc/apache2/ssl/$keyfile
+ SSLCertificateKeyFile /etc/apache2/ssl/$name.key
+ SSLCertificateFile /etc/apache2/ssl/$name.pem
</Macro>
<Macro common-directives $name>
@@ -98,8 +99,7 @@ Use common-debian-service-https-redirect www.reproducible-builds.org
<VirtualHost *:443>
Use common-directives jenkins.debian.net
- Use common-directives-ssl-key jenkins.debian.net.key
- SSLCertificateFile /etc/apache2/ssl/jenkins.debian.net.pem
+ Use common-directives-ssl jenkins.debian.net
DocumentRoot /var/www
AddDefaultCharset utf-8
@@ -161,8 +161,7 @@ Use common-debian-service-https-redirect www.reproducible-builds.org
<VirtualHost *:443>
Use common-directives reproducible.debian.net
- Use common-directives-ssl-key reproducible.debian.net.key
- SSLCertificateFile /etc/apache2/ssl/reproducible.debian.net.pem
+ Use common-directives-ssl reproducible.debian.net
# just redirect everything to the new hostname
Redirect permanent / https://tests.reproducible-builds.org/
@@ -170,8 +169,7 @@ Use common-debian-service-https-redirect www.reproducible-builds.org
<VirtualHost *:443>
Use common-directives tests.reproducible-builds.org
- Use common-directives-ssl-key reproducible.debian.net.key
- SSLCertificateFile /etc/apache2/ssl/reproducible.debian.net.pem
+ Use common-directives-ssl reproducible.debian.net
DocumentRoot /var/lib/jenkins/userContent/reproducible
AddDefaultCharset utf-8
@@ -342,8 +340,7 @@ Use common-debian-service-https-redirect www.reproducible-builds.org
<VirtualHost *:443>
Use common-directives reproducible-builds.org
- Use common-directives-ssl-key reproducible-builds.org.key
- SSLCertificateFile /etc/apache2/ssl/reproducible-builds.org.pem
+ Use common-directives-ssl reproducible-builds.org
DocumentRoot /srv/reproducible-builds.org/www
AddDefaultCharset utf-8
@@ -367,8 +364,7 @@ Use common-debian-service-https-redirect www.reproducible-builds.org
<VirtualHost *:443>
Use common-directives www.reproducible-builds.org
- Use common-directives-ssl-key reproducible-builds.org.key
- SSLCertificateFile /etc/apache2/ssl/reproducible-builds.org.pem
+ Use common-directives-ssl reproducible-builds.org
# just redirect everything to non-www
Redirect permanent / https://reproducible-builds.org/
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list