diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2009-11-05 15:39:01 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2009-11-05 15:39:01 -0200 |
commit | 91fe806a05f6add611459c0be755cfcf50ea1d90 (patch) | |
tree | 889767b540a6fbf9098df3f056c87632ddeb9699 /templates | |
parent | 5c65d2ab6dc43f5ce37ff8975346d52f4258859c (diff) | |
download | puppet-apache-91fe806a05f6add611459c0be755cfcf50ea1d90.tar.gz puppet-apache-91fe806a05f6add611459c0be755cfcf50ea1d90.tar.bz2 |
Adding more configuration into VirtualHost definition
Diffstat (limited to 'templates')
-rw-r--r-- | templates/website.erb | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/templates/website.erb b/templates/website.erb index 56be471..156b4b1 100644 --- a/templates/website.erb +++ b/templates/website.erb @@ -1,6 +1,18 @@ -# begin vhost for <%= $title %> +# begin vhost for <%= title %> <VirtualHost *:80> - # TODO - ServerName <%= $title %>.<%= $domain %> + ServerName <%= title %>.<%= domain %> +<% if alias != false %> + ServerAlias <%= 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 %> +# end vhost for <%= title %> |