fix: change set-upstream-host as a default option
This commit is contained in:
parent
71293d2bcf
commit
3fcea9a28c
5 changed files with 23 additions and 18 deletions
|
|
@ -57,7 +57,7 @@ upstream = [
|
|||
]
|
||||
load_balance = "round_robin" # or "random" or "sticky" (sticky session) or "none" (fix to the first one, default)
|
||||
upstream_options = [
|
||||
"keep_original_host", # do not overwrite HOST value with upstream hostname (like 192.168.xx.x seen from rpxy)
|
||||
"keep_original_host", # [default] do not overwrite HOST value with upstream hostname (like 192.168.xx.x seen from rpxy), which is prior to "set_upstream_host" if both are specified.
|
||||
"force_http2_upstream", # mutually exclusive with "force_http11_upstream"
|
||||
]
|
||||
|
||||
|
|
@ -76,9 +76,9 @@ upstream = [
|
|||
]
|
||||
load_balance = "random" # or "round_robin" or "sticky" (sticky session) or "none" (fix to the first one, default)
|
||||
upstream_options = [
|
||||
"disable_override_host",
|
||||
"upgrade_insecure_requests",
|
||||
"force_http11_upstream",
|
||||
"set_upstream_host", # overwrite HOST value with upstream hostname (like www.yahoo.com)
|
||||
]
|
||||
######################################################################
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue