'': { $apache_error_dest = "${apache_error_folder}/index.html" }
}
- case $apache_use_domain {
- '': { $apache_use_domain = $domain }
+ case $hosting_domain {
+ '': { $hosting_domain = $domain }
}
define site($ensure = present, $docroot = false, $redirect = false,
# vhost to handle inexistent vhosts
<VirtualHost *:80>
- ServerName error.<%= domain %>
- ServerAlias *.<%= domain %>
+ ServerName error.<%= hosting_domain %>
+ ServerAlias *.<%= hosting_domain %>
DocumentRoot <%= apache_error_folder %>
ErrorDocument 404 <%= apache_error_dest %>
# begin vhost for <%= title %>
<VirtualHost *:80>
- ServerName <%= title %>.<%= apache_use_domain %>
+ ServerName <%= title %>.<%= hosting_domain %>
<% if server_alias != false %> ServerAlias <%= server_alias %><% end %>
DocumentRoot <%= docroot %>
-<% if redirect_match != false %> RedirectMatch ^/$ <%= protocol %>://<%= title %>.<%= apache_use_domain %>/<%= redirect_match %><% end %>
+<% 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 %>