Created
March 31, 2015 17:40
-
-
Save halkeye/0dea284e6218fa49614b to your computer and use it in GitHub Desktop.
nginx+cloudflare redirect
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 characters
location / { | |
if ($http_cf_visitor !~ https) { | |
rewrite ^(.*) https://$http_host$1 permanent; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment