diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/website.erb | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/templates/website.erb b/templates/website.erb index ac41b9b..0c9d075 100644 --- a/templates/website.erb +++ b/templates/website.erb @@ -1,18 +1,11 @@ # begin vhost for <%= title %> <VirtualHost *:80> ServerName <%= title %>.<%= domain %> -<% if server_alias != false %> - ServerAlias <%= server_alias %> -<% end %> +<% if server_alias != false %> ServerAlias <%= server_alias %><% end %> DocumentRoot <%= docroot %> -<% if redirect != false %> - RedirectMatch ^/$ <%= protocol %>://<%= title %>.<%= domain %>/<%= redirect %> -<% end %> - +<% if redirect != false %> RedirectMatch ^/$ <%= protocol %>://<%= title %>.<%= domain %>/<%= redirect %><% end %> <% if use != false %> - <% use.each do |instance| -%> - Use <%= instance %> - <% end -%> +<% use.each do |instance| -%> Use <%= instance %><% end -%> <% end -%> </VirtualHost> # end vhost for <%= title %> |