1 # DO NOT EDIT - This file is being maintained by Chef
4 ServerName <%= @name %>
5 <% @aliases.each do |alias_name| -%>
6 ServerAlias <%= alias_name %>
8 ServerAdmin webmaster@openstreetmap.org
11 SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
12 SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
14 CustomLog /var/log/apache2/<%= @name %>-access.log combined
15 ErrorLog /var/log/apache2/<%= @name %>-error.log
17 DocumentRoot /srv/<%= @name %>/public
20 PassengerAppGroupName <%= @application_name %>
22 SetEnv SECRET_KEY_BASE <%= @secret_key_base %>
24 # Ensure robots do not index dev site
25 # https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag
26 Header set X-Robots-Tag "noindex, nofollow"
28 # Force special MIME type for crossdomain.xml files
29 <Files crossdomain.xml>
30 ForceType text/x-cross-domain-policy
35 ServerName <%= @name %>
36 <% @aliases.each do |alias_name| -%>
37 ServerAlias <%= alias_name %>
39 ServerAdmin webmaster@openstreetmap.org
41 CustomLog /var/log/apache2/<%= @name %>-access.log combined
42 ErrorLog /var/log/apache2/<%= @name %>-error.log
44 RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
45 RedirectPermanent / https://<%= @name %>/
47 # Ensure robots do not index dev site
48 # https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag
49 Header set X-Robots-Tag "noindex, nofollow"
52 <Directory /srv/<%= @name %>/public>
56 <Directory /srv/<%= @name %>/app/assets>
60 <Directory /srv/<%= @name %>/vendor/assets>