Fixes for Reverse Proxy Go-Live (#6)
* Add new area for defining upstream systems. * Example file for demonstration domain. * Use the new upstream hosts section. * Do the proxy directives in the main file. * Commit any final changes. * Fix example resource name. * Mention the need to have ports specified in the upstream file, not server block. * Adjust formatting.
This commit is contained in:
@ -38,13 +38,6 @@ server {
|
||||
|
||||
# Send traffic to upstream server
|
||||
location / {
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
|
||||
# These cause "400 Bad Request Request Header Or Cookie Too Large"?
|
||||
#proxy_set_header Host $host;
|
||||
#proxy_set_header X-Real-IP $remote_addr;
|
||||
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
## General format is PROTOCOL://SERVER:PORT. For example:
|
||||
#
|
||||
# If using a domain name:
|
||||
@ -53,6 +46,9 @@ server {
|
||||
# If using an IP address:
|
||||
#proxy_pass http://192.168.1.80:8080;
|
||||
#
|
||||
# If using an upstream server:
|
||||
#proxy_pass http://example-proxy-site;
|
||||
#
|
||||
# If forwarding to an external source:
|
||||
#proxy_pass https://website.name;
|
||||
#
|
||||
|
Reference in New Issue
Block a user