GWicke has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/67328


Change subject: Clamp parsoid host to "parsoid"
......................................................................

Clamp parsoid host to "parsoid"

We want any host header to match our cache entries, so simply clamp it to a
fixed value.

Change-Id: Icce70cf73a03dd8168b321d45d61988f0d818fb9
---
M templates/varnish/parsoid-common.inc.vcl.erb
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/28/67328/1

diff --git a/templates/varnish/parsoid-common.inc.vcl.erb 
b/templates/varnish/parsoid-common.inc.vcl.erb
index ba7bab5..3ab9f74 100644
--- a/templates/varnish/parsoid-common.inc.vcl.erb
+++ b/templates/varnish/parsoid-common.inc.vcl.erb
@@ -1,6 +1,9 @@
 # Varnish VCL include file shared between Parsoid front- and backends
 
 sub vcl_recv {
+       /* Clamp the host header to 'parsoid' */
+       set req.http.host = "parsoid";
+
        /* Support HTTP PURGE */
        if (req.request == "PURGE") {
                return (lookup);

-- 
To view, visit https://gerrit.wikimedia.org/r/67328
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icce70cf73a03dd8168b321d45d61988f0d818fb9
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: GWicke <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to