diff options
author | Vincent Ambo <tazjin@gmail.com> | 2015-11-21T19·50+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2015-11-21T19·50+0100 |
commit | 813c273e687d57e284aae8daec9ec7bd1196eecc (patch) | |
tree | 75d521749131179ab1b44c6b5148925b31a6b014 | |
parent | 7458430485a84519bc243eb98e08489ab52d92a0 (diff) |
[varnish] Add HSTS header on redirect
-rw-r--r-- | varnish/default.vcl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/varnish/default.vcl b/varnish/default.vcl index cd726aff363b..a06bb744b725 100644 --- a/varnish/default.vcl +++ b/varnish/default.vcl @@ -47,6 +47,7 @@ sub vcl_synth { # Execute TLS or www. redirect if (resp.status == 750) { set resp.http.Location = "https://www.tazj.in" + req.url; + set resp.http.Strict-Transport-Security = "max-age=31536000;includeSubdomains;preload"; set resp.status = 301; return (deliver); } |