]> git.openstreetmap.org Git - chef.git/blob - cookbooks/dev/templates/default/apache.rails.erb
Update apache config for 2.4
[chef.git] / cookbooks / dev / templates / default / apache.rails.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 <VirtualHost *:80>
4         ServerName <%= @name %>
5 <% @aliases.each do |alias_name| -%>
6         ServerAlias <%= alias_name %>
7 <% end -%>
8         ServerAdmin webmaster@openstreetmap.org
9
10         DocumentRoot /srv/<%= @name %>/public
11
12         CustomLog /var/log/apache2/<%= @name %>-access.log combined
13         ErrorLog /var/log/apache2/<%= @name %>-error.log
14
15         RailsEnv production
16
17         SetEnv SECRET_KEY_BASE <%= @secret_key_base %>
18 </VirtualHost>
19
20 <Directory /srv/<%= @name %>/public>
21         Require all granted
22 </Directory>
23
24 <Directory /srv/<%= @name %>/app/assets>
25         Require all granted
26 </Directory>
27
28 <Directory /srv/<%= @name %>/vendor/assets>
29         Require all granted
30 </Directory>