Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
sub vcl_recv {
if ( req.http.X-Forwarded-Proto !~ "(?i)https") {
return (synth(750, ""));
}
}
sub vcl_synth {
if (resp.status == 750) {
set resp.status = 301;
set resp.http.Location = "https://blog.stangroome.com" + req.url;
return(deliver);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment