From 8390d148774ba917fdff5a37095c6816ed6c16ce Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 21 Nov 2015 20:30:50 +0100 Subject: [PATCH] [varnish] Fix www. redirect --- varnish/default.vcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish/default.vcl b/varnish/default.vcl index 066b1a9b2..cd726aff3 100644 --- a/varnish/default.vcl +++ b/varnish/default.vcl @@ -26,7 +26,7 @@ sub vcl_recv { } # Redirect non-www to www and non-HTTPS to HTTPS - if (req.http.host ~ "tazj.in" || std.port(local.ip) == 6081) { + if (req.http.host ~ "^tazj.in" || std.port(local.ip) == 6081) { return (synth (750, "")); } }