summaryrefslogtreecommitdiff
path: root/templates/site.erb
blob: 18fce97df75b5bf014ee98a2bfcafe6d38056fca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# begin vhost for <%= title %>
<VirtualHost *:80>
   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 use != false %><% use.each do |instance| -%>
   Use <%= instance %>
<% end -%><% end -%>
</VirtualHost>
# end vhost for <%= title %>