add support to overwrite host header if only a location has a backend
This commit is contained in:
parent
5b201a05cf
commit
3a52a1156f
2 changed files with 4 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ server {
|
|||
proxy_buffering off;
|
||||
|
||||
# add proxy headers
|
||||
proxy_set_header Host {{ vhost.host }};
|
||||
proxy_set_header Host {{ location.host|d(vhost.host) }};
|
||||
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 $scheme;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue