diff --git a/rootfs/etc/nginx/template/nginx.tmpl b/rootfs/etc/nginx/template/nginx.tmpl index bf7f4bfbf5..5d8ead14ac 100644 --- a/rootfs/etc/nginx/template/nginx.tmpl +++ b/rootfs/etc/nginx/template/nginx.tmpl @@ -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;