Skip to content

Instantly share code, notes, and snippets.

@580farm
Last active December 9, 2015 23:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 580farm/4341705 to your computer and use it in GitHub Desktop.
Save 580farm/4341705 to your computer and use it in GitHub Desktop.
nginx 400 request
ProxyTimeout 300
SSLProxyEngine on
#testing support proxypass
ProxyPass /support http://localhost:7080/
ProxyPassReverse /support http://localhost:7080/
server {
listen 7080;
server_name _;
ssl on;
ssl_certificate /etc/nginx/server.crt;
ssl_certificate_key /etc/nginx/server.key;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
proxy_pass https://company.custhelp.com;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment