Set proxy_host variable to avoid using default value from proxy_pass
This commit is contained in:
parent
d26543aa85
commit
a2d50c2cd6
1 changed files with 3 additions and 0 deletions
|
@ -529,6 +529,9 @@ http {
|
|||
{{ end }}
|
||||
server_name {{ $hostname }};
|
||||
|
||||
{{/* default value of proxy_host is the name and port of a proxied server as specified in the proxy_pass directive */}}
|
||||
set $proxy_host {{ $hostname }};
|
||||
|
||||
{{ if gt (len $cfg.BlockUserAgents) 0 }}
|
||||
if ($block_ua) {
|
||||
return 403;
|
||||
|
|
Loading…
Reference in a new issue