aboutsummaryrefslogtreecommitdiffstats
path: root/modules/apache/templates
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2010-12-15 03:11:52 +0000
committerMichael Scherer <misc@mageia.org>2010-12-15 03:11:52 +0000
commit6200ca643d340467412531b0419c80e7c52535db (patch)
treeb9ddd945204666a4a29e3d819c9a8a065a020764 /modules/apache/templates
parent5f145dd06ad0ad325e24d3d60e11b195ffeec641 (diff)
downloadpuppet-6200ca643d340467412531b0419c80e7c52535db.tar
puppet-6200ca643d340467412531b0419c80e7c52535db.tar.gz
puppet-6200ca643d340467412531b0419c80e7c52535db.tar.bz2
puppet-6200ca643d340467412531b0419c80e7c52535db.tar.xz
puppet-6200ca643d340467412531b0419c80e7c52535db.zip
add ssl support to django deployment class
Diffstat (limited to 'modules/apache/templates')
-rw-r--r--modules/apache/templates/vhost_django_app.conf15
1 files changed, 14 insertions, 1 deletions
diff --git a/modules/apache/templates/vhost_django_app.conf b/modules/apache/templates/vhost_django_app.conf
index 9d64865f..1cc12458 100644
--- a/modules/apache/templates/vhost_django_app.conf
+++ b/modules/apache/templates/vhost_django_app.conf
@@ -1,4 +1,17 @@
-<VirtualHost *:80>
+<% if use_ssl then
+ port = 443
+else
+ port = 80
+end
+%>
+
+<VirtualHost *:<%= port %>>
+<% if use_ssl then %>
+ SSLEngine on
+ SSLCertificateFile /etc/ssl/apache/<%= name %>.pem
+ SSLCertificateKeyFile /etc/ssl/apache/<%= name %>.pem
+<% end %>
+
ServerName <%= name %>
# Serve static content directly
DocumentRoot /dev/null