blob: 80ad807ba2ac3c5fdcde98b5d3dbad79b2dcb79d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# 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 aliases != false %><% aliases.each do |map| -%>
Alias <%= map %>
<% end -%><% end -%>
<% if use != false %><% use.each do |instance| -%>
Use <%= instance %>
<% end -%><% end -%>
<% if mpm == true %>
<IfModule mpm_itk_module>
AssignUserId <%= user %> <%= gid %>
</IfModule>
<% end %>
</VirtualHost>
# end vhost for <%= title %>
|