]> git.openstreetmap.org Git - chef.git/blob - cookbooks/taginfo/templates/default/apache.erb
Bring OSQA backups under chef control
[chef.git] / cookbooks / taginfo / templates / default / apache.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 <% [80, 443].each do |port| -%>
4
5 <VirtualHost *:<%= port %>>
6         ServerName <%= @name %>
7         ServerAdmin webmaster@openstreetmap.org
8 <% if port == 443 -%>
9
10         SSLEngine on
11 <% end -%>
12
13         CustomLog /var/log/apache2/<%= @name %>-access.log combined
14         ErrorLog /var/log/apache2/<%= @name %>-error.log
15
16         DocumentRoot <%= @directory %>
17         RackEnv production
18         PassengerMinInstances 10
19         PassengerPreStart http://<%= @name %>/
20
21         CacheEnable disk /api
22         CacheEnable disk /embed
23 </VirtualHost>
24 <% end -%>
25
26 <Directory <%= @directory %>>
27         Require all granted
28 </Directory>