about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2015-11-21T19·30+0100
committerVincent Ambo <tazjin@gmail.com>2015-11-21T19·30+0100
commit8390d148774ba917fdff5a37095c6816ed6c16ce (patch)
treee667ba78e94217d6d634db871540c44c75916a2c
parenta3a2afdc597eb00121191ca42f01a9e04555f684 (diff)
[varnish] Fix www. redirect
-rw-r--r--varnish/default.vcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/varnish/default.vcl b/varnish/default.vcl
index 066b1a9b248f..cd726aff363b 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, ""));
         }
 }