]> git.openstreetmap.org Git - chef.git/blob - cookbooks/dev/templates/default/apache.user.erb
Log request times in microseconds
[chef.git] / cookbooks / dev / templates / default / apache.user.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 WSGIDaemonProcess <%= @user %>.dev.openstreetmap.org user=<%= @user %> inactivity-timeout=600
4
5 <VirtualHost *:80>
6         ServerName <%= @user %>.dev.openstreetmap.org
7         ServerAdmin webmaster@openstreetmap.org
8         ServerAlias <%= @user %>.dev.osm.org
9
10         UseCanonicalName Off
11         DocumentRoot <%= @directory %>
12         ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
13
14         WSGIProcessGroup <%= @user %>.dev.openstreetmap.org
15
16         RewriteEngine on
17         #LogLevel rewrite:trace2
18
19         CustomLog /var/log/apache2/<%= @user %>.dev.openstreetmap.org-access.log combined
20         ErrorLog /var/log/apache2/<%= @user %>.dev.openstreetmap.org-error.log
21
22         RewriteCond <%= @directory %>%{REQUEST_FILENAME} -f
23         RewriteRule ^/cgi-bin/(.*)$ /cgi-bin/cgiwrap/~<%= @user %>/cgi-bin/$1 [PT,L]
24
25         RewriteCond <%= @directory %>%{REQUEST_FILENAME} -f
26         RewriteRule ^/cgi-bin-d/(.*)$ /cgi-bin/cgiwrapd/~<%= @user %>/cgi-bin/$1 [PT,L]
27
28         RewriteRule ^/(.*\.ph(p|ps|p3|tml)(/.*)?)$ fcgi://127.0.0.1:<%= @port %><%= @directory %>/$1 [P]
29 </VirtualHost>
30
31 <Directory <%= @directory %>>
32         AllowOverride AuthConfig FileInfo Indexes Options=RailsBaseURI
33         Options SymLinksIfOwnerMatch Indexes Includes
34         Require all granted
35 </Directory>
36
37 <Directory <%= @directory %>/wsgi-bin>
38         SetHandler wsgi-script
39         Options ExecCGI SymLinksIfOwnerMatch
40         Require all granted
41 </Directory>