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"
29 ServerName <%= @name %>
30 <% @aliases.each do |alias_name| -%>
31 ServerAlias <%= alias_name %>
33 ServerAdmin webmaster@openstreetmap.org
35 CustomLog /var/log/apache2/<%= @name %>-access.log combined
36 ErrorLog /var/log/apache2/<%= @name %>-error.log
38 RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
39 RedirectPermanent / https://<%= @name %>/
41 # Ensure robots do not index dev site
42 # https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag
43 Header set X-Robots-Tag "noindex, nofollow"
46 <Directory /srv/<%= @name %>/public>
50 <Directory /srv/<%= @name %>/app/assets>
54 <Directory /srv/<%= @name %>/vendor/assets>