From 283fa23e5624b422ff2e2d74f613a253344724ef Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Fri, 2 Oct 2015 17:28:23 -0400 Subject: [PATCH] Serve the local /robots.txt instead of proxying it Exclude "/robots.txt" from Apache's reverse proxying so that it can be served to crawlers. Change-Id: Ibd3a592e7906169d40619ae5c8dc02afe3589a81 Depends-On: I55a86d3c703a667daf55cb75cf559eb23a556219 --- manifests/site.pp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/manifests/site.pp b/manifests/site.pp index 51c8b08..c2c2f36 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -14,9 +14,10 @@ define lodgeit::site( include ::httpd ::httpd::vhost::proxy { $vhost_name: - port => 80, - dest => "http://localhost:${port}", - require => File["/srv/lodgeit/${name}"], + port => 80, + dest => "http://localhost:${port}", + require => File["/srv/lodgeit/${name}"], + proxyexclusions => ['/robots.txt'], } file { "/etc/init/${name}-paste.conf":