diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-01-07 19:17:31 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-01-07 19:17:31 -0200 |
commit | b936755f402e7be72d00d5ccb618c222fbea23fc (patch) | |
tree | afdc6ca732f87ae4ce1f37d7c3fb5ce6ffef18ba /templates | |
parent | 5ccb78707ac02dd2fa44be5822d712d941c21e65 (diff) | |
download | puppet-apache-b936755f402e7be72d00d5ccb618c222fbea23fc.tar.gz puppet-apache-b936755f402e7be72d00d5ccb618c222fbea23fc.tar.bz2 |
Adding $apache_use_domain
Diffstat (limited to 'templates')
-rw-r--r-- | templates/site.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/site.erb b/templates/site.erb index 1d050d6..f75c81a 100644 --- a/templates/site.erb +++ b/templates/site.erb @@ -1,9 +1,9 @@ # begin vhost for <%= title %> <VirtualHost *:80> - ServerName <%= title %>.<%= domain %> + ServerName <%= title %>.<%= use_domain %> <% if server_alias != false %> ServerAlias <%= server_alias %><% end %> DocumentRoot <%= docroot %> -<% if redirect_match != false %> RedirectMatch ^/$ <%= protocol %>://<%= title %>.<%= domain %>/<%= redirect_match %><% end %> +<% if redirect_match != false %> RedirectMatch ^/$ <%= protocol %>://<%= title %>.<%= use_domain %>/<%= redirect_match %><% end %> <% if redirect != false %> Redirect <%= redirect %><% end %> <% if use != false %><% use.each do |instance| -%> Use <%= instance %> |