X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/492559ef865a09dba696babf6178a05b33cc2eb8..66c8810de3626826ca758bf47b0def637254c97c:/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..e431cf1a1 100644
--- a/cookbooks/dev/templates/default/apache.rails.erb
+++ b/cookbooks/dev/templates/default/apache.rails.erb
@@ -19,6 +19,10 @@
RailsEnv production
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"
@@ -33,6 +37,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>