X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/492559ef865a09dba696babf6178a05b33cc2eb8..302f585d1cc283f0e6d129f24f2416c4b464898a:/cookbooks/dev/templates/default/apache.rails.erb
diff --git a/cookbooks/dev/templates/default/apache.rails.erb b/cookbooks/dev/templates/default/apache.rails.erb
index 4eab0d2ee..c8f5f779d 100644
--- a/cookbooks/dev/templates/default/apache.rails.erb
+++ b/cookbooks/dev/templates/default/apache.rails.erb
@@ -17,8 +17,18 @@
DocumentRoot /srv/<%= @name %>/public
RailsEnv production
+ PassengerAppGroupName <%= @application_name %>
SetEnv SECRET_KEY_BASE <%= @secret_key_base %>
+
+ # Ensure robots do not index dev site
+ # https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag
+ Header set X-Robots-Tag "noindex, nofollow"
+
+ # Force special MIME type for crossdomain.xml files
+
+ ForceType text/x-cross-domain-policy
+
@@ -33,6 +43,10 @@
RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
RedirectPermanent / https://<%= @name %>/
+
+ # Ensure robots do not index dev site
+ # https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag
+ Header set X-Robots-Tag "noindex, nofollow"
/public>