From 235caa63ec1d56ee63afec6a71acad2169f12b3c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 29 Nov 2011 00:23:21 -0200 Subject: Adding SSL suport --- templates/site.erb | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/site.erb b/templates/site.erb index 80ad807..5a9f074 100644 --- a/templates/site.erb +++ b/templates/site.erb @@ -1,5 +1,5 @@ # begin vhost for <%= title %> - +:80> ServerName <%= title %>.<%= hosting_domain %> <% if server_alias != false %> ServerAlias <%= server_alias %><% end %> DocumentRoot <%= docroot %> @@ -18,3 +18,32 @@ <% end %> # end vhost for <%= title %> +<% if ssl == true %> +# begin ssl vhost for <%= title %> +:443> + ServerName <%= title %>.<%= hosting_domain %> +<% if server_alias != false %> ServerAlias <%= server_alias %><% end %> + DocumentRoot <%= docroot %> +<% if redirect_match != false %> RedirectMatch ^/$ <%= protocol %>://<%= title %>.<%= hosting_domain %>/<%= redirect_match %><% end %> +<% if redirect != false %> Redirect <%= redirect %><% end %> +<% if aliases != false %><% aliases.each do |map| -%> + Alias <%= map %> +<% end -%><% end -%> +<% if use != false %><% use.each do |instance| -%> + Use <%= instance %> +<% end -%><% end -%> +<% if mpm == true %> + + AssignUserId <%= user %> <%= gid %> + +<% end %> +<% if server_alias == true %> + # SSL Configuration + SSLEngine on + SSLProtocol -all +SSLv3 +TLSv1 + SSLCipherSuite HIGH:MEDIUM:!aNULL:!SSLv2:!MD5:@STRENGTH + SSLHonorCipherOrder on +<% end %> + +# end ssl vhost for <%= title %> +<% end %> -- cgit v1.2.3