Mark Bergsma has uploaded a new change for review.
https://gerrit.wikimedia.org/r/60418
Change subject: Fix variable name
......................................................................
Fix variable name
Change-Id: I268df5aacca7de96a8b467cbe06042e6cc211734
---
M templates/varnish/mobile-backend.inc.vcl.erb
M templates/varnish/mobile-frontend.inc.vcl.erb
2 files changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/18/60418/1
diff --git a/templates/varnish/mobile-backend.inc.vcl.erb
b/templates/varnish/mobile-backend.inc.vcl.erb
index cfc5746..6d4dd57 100644
--- a/templates/varnish/mobile-backend.inc.vcl.erb
+++ b/templates/varnish/mobile-backend.inc.vcl.erb
@@ -1,7 +1,7 @@
# Varnish VCL include file for mobile backends
sub vcl_recv {
- if (req.host ~ "^([a-zA-Z0-9-]+)\.(m|zero|wap|mobile)\.") {
+ if (req.http.host ~ "^([a-zA-Z0-9-]+)\.(m|zero|wap|mobile)\.") {
call vcl_recv_purge;
}
elsif (req.request == "PURGE") {
diff --git a/templates/varnish/mobile-frontend.inc.vcl.erb
b/templates/varnish/mobile-frontend.inc.vcl.erb
index 80b68d7..ea2ba3c 100644
--- a/templates/varnish/mobile-frontend.inc.vcl.erb
+++ b/templates/varnish/mobile-frontend.inc.vcl.erb
@@ -513,7 +513,7 @@
}
sub vcl_recv {
- if (req.host ~ "^([a-zA-Z0-9-]+)\.(m|zero|wap|mobile)\.") {
+ if (req.http.host ~ "^([a-zA-Z0-9-]+)\.(m|zero|wap|mobile)\.") {
call vcl_recv_purge;
}
elsif (req.request == "PURGE") {
--
To view, visit https://gerrit.wikimedia.org/r/60418
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I268df5aacca7de96a8b467cbe06042e6cc211734
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Mark Bergsma <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits