Last active
December 9, 2015 23:08
-
-
Save 580farm/4341705 to your computer and use it in GitHub Desktop.
nginx 400 request
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
ProxyTimeout 300 | |
SSLProxyEngine on | |
#testing support proxypass | |
ProxyPass /support http://localhost:7080/ | |
ProxyPassReverse /support http://localhost:7080/ |
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
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