diff options
-rw-r--r-- | modules/apache/templates/vhost_catalyst_app.conf | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/modules/apache/templates/vhost_catalyst_app.conf b/modules/apache/templates/vhost_catalyst_app.conf index a3aee804..631067ef 100644 --- a/modules/apache/templates/vhost_catalyst_app.conf +++ b/modules/apache/templates/vhost_catalyst_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 + #TODO deploy SNI later + SSLCertificateFile /etc/ssl/apache/apache.pem + SSLCertificateKeyFile /etc/ssl/apache/apache.pem +<% end %> ServerName <%= name %> # Serve static content directly DocumentRoot /dev/null |