summaryrefslogtreecommitdiffstats
path: root/etc/apache2/sites-available
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-04-06 12:26:57 +0200
committerHolger Levsen <holger@layer-acht.org>2014-04-06 12:26:57 +0200
commit170365e0685a76ad2bbc36320a41f03f4f2b73db (patch)
treea3e29d7329147386002dab80fa70a4f239fed736 /etc/apache2/sites-available
parent15291316104221dadf044451e01e6f43ab333517 (diff)
downloadjenkins.debian.net-170365e0685a76ad2bbc36320a41f03f4f2b73db.tar.xz
use SSL
Diffstat (limited to 'etc/apache2/sites-available')
-rw-r--r--etc/apache2/sites-available/jenkins.debian.net17
1 files changed, 16 insertions, 1 deletions
diff --git a/etc/apache2/sites-available/jenkins.debian.net b/etc/apache2/sites-available/jenkins.debian.net
index d329c049..4b8aa586 100644
--- a/etc/apache2/sites-available/jenkins.debian.net
+++ b/etc/apache2/sites-available/jenkins.debian.net
@@ -1,5 +1,19 @@
+NameVirtualHost *:80
<VirtualHost *:80>
- ServerAdmin webmaster@localhost
+ ServerName jenkins.debian.net
+ RewriteEngine On
+ RewriteCond %{HTTPS} !=on
+ RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
+</VirtualHost>
+
+NameVirtualHost *:443
+<VirtualHost *:443>
+ SSLEngine on
+ SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
+ SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
+
+ ServerName jenkins.debian.net
+ ServerAdmin holger@layer-acht.org
DocumentRoot /var/www
<Directory />
@@ -19,6 +33,7 @@
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
+ SSLOptions +StdEnvVars
</Directory>
# allow certain params only from alioth (token is used to trigger builds)