--- /dev/null
+# DO NOT EDIT - This file is being maintained by Chef
+
+WSGIDaemonProcess <%= @name %> user=<%= @user %> group=<%= @group %> processes=4 threads=4
+
+<VirtualHost *:80>
+ ServerName <%= @name %>
+ ServerAdmin webmaster@openstreetmap.org
+
+ CustomLog /var/log/apache2/<%= @name %>-access.log combined
+ ErrorLog /var/log/apache2/<%= @name %>-error.log
+
+ RedirectPermanent / https://<%= @name %>/
+</VirtualHost>
+
+<VirtualHost *:443>
+ ServerName <%= @name %>
+ ServerAdmin webmaster@openstreetmap.org
+
+ CustomLog /var/log/apache2/<%= @name %>-access.log combined
+ ErrorLog /var/log/apache2/<%= @name %>-error.log
+
+ DocumentRoot <%= @directory %>
+ Alias /m/ <%= @directory %>/forum/skins/
+ Alias /upfiles/ <%= @directory %>/forum/upfiles/
+ Alias /admin_media/ /usr/share/pyshared/django/contrib/admin/media/
+ WSGIScriptAlias / <%= @directory %>/osqa.wsgi
+
+ WSGIProcessGroup <%= @name %>
+
+ SSLEngine on
+</VirtualHost>