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
21 SetEnv SECRET_KEY_BASE <%= @secret_key_base %>
23 # Ensure robots do not index dev site
24 # https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag
25 Header set X-Robots-Tag "noindex, nofollow"
27 # Force special MIME type for crossdomain.xml files
28 <Files crossdomain.xml>
29 ForceType text/x-cross-domain-policy
34 ServerName <%= @name %>
35 <% @aliases.each do |alias_name| -%>
36 ServerAlias <%= alias_name %>
38 ServerAdmin webmaster@openstreetmap.org
40 CustomLog /var/log/apache2/<%= @name %>-access.log combined
41 ErrorLog /var/log/apache2/<%= @name %>-error.log
43 RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
44 RedirectPermanent / https://<%= @name %>/
46 # Ensure robots do not index dev site
47 # https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag
48 Header set X-Robots-Tag "noindex, nofollow"
51 <Directory /srv/<%= @name %>/public>
55 <Directory /srv/<%= @name %>/app/assets>
59 <Directory /srv/<%= @name %>/vendor/assets>