[varnish] Fix www. redirect
This commit is contained in:
parent
a3a2afdc59
commit
8390d14877
1 changed files with 1 additions and 1 deletions
|
@ -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, ""));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue