[varnish] Fix www. redirect

This commit is contained in:
Vincent Ambo 2015-11-21 20:30:50 +01:00
parent a3a2afdc59
commit 8390d14877

View file

@ -26,7 +26,7 @@ sub vcl_recv {
} }
# Redirect non-www to www and non-HTTPS to HTTPS # 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, "")); return (synth (750, ""));
} }
} }