From 699faea3e57d0a7708370aeb7ef6de2edd9365ac Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Mon, 8 Nov 2010 00:37:59 +0000 Subject: - add logic for using ssl certificate ( no SNI for the moment, but should be done later ) --- modules/apache/templates/vhost_catalyst_app.conf | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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 @@ - +<% if use_ssl then + port = 443 +else + port = 80 +end +%> + +> +<% 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 -- cgit v1.2.1