Created
June 5, 2017 20:29
-
-
Save kmjones1979/2d4bfcbb94d371768bcd8ad84bca7a77 to your computer and use it in GitHub Desktop.
[NGINX Plus] Redirect all HTTP traffic to 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
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
server_name _; | |
status_zone example.com_80; | |
location / { | |
return 301 https://$host$request_uri; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment