diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | templates/site.erb | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d9568ca --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*swp diff --git a/templates/site.erb b/templates/site.erb new file mode 100644 index 0000000..795fadc --- /dev/null +++ b/templates/site.erb @@ -0,0 +1,11 @@ +# begin vhost for <%= title %> +<VirtualHost *:80> + ServerName <%= title %>.<%= domain %> +<% if server_alias != false %> ServerAlias <%= server_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 %> |