Mark Bergsma has submitted this change and it was merged.

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(-)

Approvals:
  Mark Bergsma: Looks good to me, approved
  jenkins-bot: Verified



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: merged
Gerrit-Change-Id: I268df5aacca7de96a8b467cbe06042e6cc211734
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Mark Bergsma <[email protected]>
Gerrit-Reviewer: Mark Bergsma <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to