Mark Bergsma has submitted this change and it was merged.

Change subject: Add a custom error page to the mobile cache cluster
......................................................................


Add a custom error page to the mobile cache cluster

Change-Id: Ib419fb9966051a47e86e894f7235ac1df303c742
---
M templates/varnish/mobile-backend.inc.vcl.erb
M templates/varnish/mobile-frontend.inc.vcl.erb
2 files changed, 11 insertions(+), 0 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 b1c4daa..8246188 100644
--- a/templates/varnish/mobile-backend.inc.vcl.erb
+++ b/templates/varnish/mobile-backend.inc.vcl.erb
@@ -1,5 +1,7 @@
 # Varnish VCL include file for mobile backends
 
+include "errorpage.inc.vcl";
+
 sub vcl_recv {
        call vcl_recv_purge;
        /* FIXME: restrict access */
@@ -22,3 +24,8 @@
                set beresp.ttl = 60 s;
        }
 }
+
+sub vcl_error {
+       call errorpage;
+       return(deliver);
+}
diff --git a/templates/varnish/mobile-frontend.inc.vcl.erb 
b/templates/varnish/mobile-frontend.inc.vcl.erb
index 0ebf05d..ff3aad7 100644
--- a/templates/varnish/mobile-frontend.inc.vcl.erb
+++ b/templates/varnish/mobile-frontend.inc.vcl.erb
@@ -1,5 +1,6 @@
 # Varnish VCL include file for mobile frontends
 
+include "errorpage.inc.vcl";
 include "device-detection.inc.vcl";
 include "zero.inc.vcl";
 
@@ -107,6 +108,9 @@
                set obj.status = 302;
                return(deliver);
        }
+
+       call errorpage;
+       return(deliver);
 }
 
 sub vcl_deliver {

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib419fb9966051a47e86e894f7235ac1df303c742
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