1 # DO NOT EDIT - This file is being maintained by Chef
3 WSGIDaemonProcess <%= @name %> user=<%= @user %> group=<%= @group %> processes=4 threads=4
6 ServerName <%= @name %>
7 ServerAdmin webmaster@openstreetmap.org
9 CustomLog /var/log/apache2/<%= @name %>-access.log combined
10 ErrorLog /var/log/apache2/<%= @name %>-error.log
12 RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
13 RedirectPermanent / https://<%= @name %>/
17 ServerName <%= @name %>
18 ServerAdmin webmaster@openstreetmap.org
21 SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
22 SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
24 CustomLog /var/log/apache2/<%= @name %>-access.log combined
25 ErrorLog /var/log/apache2/<%= @name %>-error.log
27 DocumentRoot <%= @directory %>/osqa
28 Alias /m/ <%= @directory %>/osqa/forum/skins/
29 Alias /upfiles/ <%= @directory %>/upfiles/
30 Alias /admin_media/ /usr/share/pyshared/django/contrib/admin/media/
31 WSGIScriptAlias / <%= @directory %>/osqa/osqa.wsgi
33 WSGIProcessGroup <%= @name %>
36 <Directory <%= @directory %>/osqa>
40 <Directory <%= @directory %>/upfiles>