Skip to content

Instantly share code, notes, and snippets.

@artzub
Created December 25, 2013 09:19
Show Gist options
  • Save artzub/8121652 to your computer and use it in GitHub Desktop.
Save artzub/8121652 to your computer and use it in GitHub Desktop.
https proxy to http
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