diff options
Diffstat (limited to 'modules/apache/templates/vhost_django_app.conf')
-rw-r--r-- | modules/apache/templates/vhost_django_app.conf | 15 |
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 |