]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/taginfo/templates/default/apache.erb
Initial work on a taginfo cookbook
[chef.git] / cookbooks / taginfo / templates / default / apache.erb
diff --git a/cookbooks/taginfo/templates/default/apache.erb b/cookbooks/taginfo/templates/default/apache.erb
new file mode 100644 (file)
index 0000000..9ebca51
--- /dev/null
@@ -0,0 +1,21 @@
+# DO NOT EDIT - This file is being maintained by Chef
+
+<% [80, 443].each do |port| -%>
+
+<VirtualHost *:<%= port %>>
+        ServerName <%= @name %>
+        ServerAdmin webmaster@openstreetmap.org
+<% if port == 443 -%>
+
+        SSLEngine on
+<% end -%>
+
+        CustomLog /var/log/apache2/<%= @name %>-access.log combined
+        ErrorLog /var/log/apache2/<%= @name %>-error.log
+
+        DocumentRoot <%= @directory %>
+        RackEnv production
+        PassengerMinInstances 10
+        PassengerPreStart http://<%= @name %>/
+</VirtualHost>
+<% end -%>