Set proxy_host variable to avoid using default value from proxy_pass

This commit is contained in:
Manuel Alejandro de Brito Fontes 2018-11-16 14:07:08 -03:00
parent d26543aa85
commit a2d50c2cd6
No known key found for this signature in database
GPG key ID: 786136016A8BA02A

View file

@ -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;