summaryrefslogtreecommitdiff
path: root/templates/website.erb
blob: ac41b9b395ea027b4ff81e37f5deeffb2d4a3a7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# begin vhost for <%= title %>
<VirtualHost *:80>
   ServerName <%= title %>.<%= domain %>
<% if server_alias != false %>
   ServerAlias <%= server_alias %>
<% end %>
   DocumentRoot <%= docroot %>
<% if redirect != false %>       
   RedirectMatch ^/$ <%= protocol %>://<%= title %>.<%= domain %>/<%= redirect %>
<% end %>

<% if use != false %>
  <% use.each do |instance| -%> 
   Use <%= instance %> 
  <% end -%>
<% end -%>
</VirtualHost>
# end vhost for <%= title %>