Last active
April 17, 2016 11:22
-
-
Save adnanfajr/071a5fcdcf06d2348f89cb16798d5eab to your computer and use it in GitHub Desktop.
Nginx conf to enable https
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
... | |
if ($http_x_forwarded_proto = "http") { | |
return 301 https://$server_name$request_uri; | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment