1 # DO NOT EDIT - This file is being maintained by Chef
3 WSGIDaemonProcess <%= @name %> user=<%= @user %> group=<%= @group %> maximum-requests=5000 threads=25 inactivity-timeout=180
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 %>/htdocs
28 Alias /robots.txt <%= @directory %>/htdocs/site/robots.txt
29 WSGIScriptAlias / <%= @directory %>/cgi-bin/trac.wsgi
31 WSGIProcessGroup <%= @name %>
33 DefineExternalAuth osm pipe /usr/local/bin/trac-authenticate
37 AuthName "OpenStreetMap Trac"
38 AuthBasicProvider external
44 <Directory <%= @directory %>/htdocs>
48 <Directory <%= @directory %>/cgi-bin>