1 # DO NOT EDIT - This file is being maintained by Chef
3 WSGIDaemonProcess <%= @user %>.dev.openstreetmap.org user=<%= @user %> inactivity-timeout=600
6 ServerName <%= @user %>.dev.openstreetmap.org
7 ServerAdmin webmaster@openstreetmap.org
8 ServerAlias <%= @user %>.dev.osm.org
11 DocumentRoot <%= @directory %>
12 ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
14 WSGIProcessGroup <%= @user %>.dev.openstreetmap.org
17 #RewriteLog /var/log/apache2/rewrite.log
20 CustomLog /var/log/apache2/<%= @user %>.dev.openstreetmap.org-access.log combined
21 ErrorLog /var/log/apache2/<%= @user %>.dev.openstreetmap.org-error.log
23 RewriteCond <%= @directory %>%{REQUEST_FILENAME} -f
24 RewriteRule ^/cgi-bin/(.*)$ /cgi-bin/cgiwrap/~<%= @user %>/cgi-bin/$1 [PT,L]
26 RewriteCond <%= @directory %>%{REQUEST_FILENAME} -f
27 RewriteRule ^/cgi-bin-d/(.*)$ /cgi-bin/cgiwrapd/~<%= @user %>/cgi-bin/$1 [PT,L]
29 <IfModule mod_fastcgi_handler.c>
30 <FilesMatch "\.ph(p3?|tml)$">
31 SetHandler fcgi:/var/run/php5-fpm-<%= @user %>.sock
33 <FilesMatch "\.phps$">
34 SetHandler fcgi:/var/run/php5-fpm-<%= @user %>.sock
38 <IfModule !mod_fastcgi_handler.c>
39 RewriteCond <%= @directory %>%{REQUEST_FILENAME} -f
40 RewriteRule ^(.*\.php)$ /cgi-bin/php-cgiwrap/~<%= @user %>/$1 [PT,L]
44 <Directory <%= @directory %>>
45 AllowOverride AuthConfig FileInfo Indexes Options=RailsBaseURI
46 Options SymLinksIfOwnerMatch Indexes Includes
49 <Directory <%= @directory %>/wsgi-bin>
50 SetHandler wsgi-script
51 Options ExecCGI SymLinksIfOwnerMatch