]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/dev/templates/default/apache.rails.erb
Add a load more cookbooks to the public repository
[chef.git] / cookbooks / dev / templates / default / apache.rails.erb
diff --git a/cookbooks/dev/templates/default/apache.rails.erb b/cookbooks/dev/templates/default/apache.rails.erb
new file mode 100644 (file)
index 0000000..7d45abe
--- /dev/null
@@ -0,0 +1,16 @@
+# DO NOT EDIT - This file is being maintained by Chef
+
+<VirtualHost *:80>
+       ServerName <%= @name %>
+<% @aliases.each do |alias_name| -%>
+       ServerAlias <%= alias_name %>
+<% end -%>
+       ServerAdmin webmaster@openstreetmap.org
+
+       DocumentRoot /srv/<%= @name %>/public
+
+       CustomLog /var/log/apache2/<%= @name %>-access.log combined
+       ErrorLog /var/log/apache2/<%= @name %>-error.log
+
+       RailsEnv production
+</VirtualHost>