-
-
Save pelligrag/3159803a20f59d559f01cdbb2fb1380b to your computer and use it in GitHub Desktop.
Revisions
-
section-io-gists revised this gist
May 9, 2017 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,4 +10,8 @@ sub vcl_synth { set resp.status = 301; return(deliver); } } sub vcl_hash { hash_data(req.http.X-Forwarded-Proto); } -
section-io-gists revised this gist
May 9, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ sub vcl_recv { if (req.http.X-Forwarded-Proto !~ "https") { return (synth(850, "Moved Permanently")); } } -
section-io-gists renamed this gist
Apr 26, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
section-io-gists created this gist
Apr 26, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ sub vcl_recv { if (req.http.X-Forwarded-For !~ "https") { return (synth(850, "Moved Permanently")); } } sub vcl_synth { if(resp.status == 850) { set resp.http.Location = "https://" + req.http.host + req.url; set resp.status = 301; return(deliver); } }