From 91fe806a05f6add611459c0be755cfcf50ea1d90 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 5 Nov 2009 15:39:01 -0200 Subject: Adding more configuration into VirtualHost definition --- templates/website.erb | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'templates') diff --git a/templates/website.erb b/templates/website.erb index 56be471..156b4b1 100644 --- a/templates/website.erb +++ b/templates/website.erb @@ -1,6 +1,18 @@ -# begin vhost for <%= $title %> +# begin vhost for <%= title %> - # TODO - ServerName <%= $title %>.<%= $domain %> + ServerName <%= title %>.<%= domain %> +<% if alias != false %> + ServerAlias <%= alias %> +<% end %> + DocumentRoot <%= docroot %> +<% if redirect != false %> + RedirectMatch ^/$ <%= protocol %>://<%= title %>.<%= domain %>/<%= redirect %> +<% end %> + +<% if use != false %> + <% use.each do |instance| -%> + Use <%= instance %> + <% end -%> +<% end -%> -# end vhost for <%= $title %> +# end vhost for <%= title %> -- cgit v1.2.3