Created
December 25, 2013 09:19
-
-
Save artzub/8121652 to your computer and use it in GitHub Desktop.
https proxy to http
This file contains 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
ssl_certificate /etc/nginx/ssl/cert.pem; | |
ssl_certificate_key /etc/nginx/ssl/cert.key; | |
server { | |
listen 443 ssl; | |
server_name <server_name>; | |
location / { | |
proxy_pass http://localhost:80; | |
proxy_set_header Host $host; | |
proxy_redirect http:// https://; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment