Opened 4 years ago

#2090 new enhancement

proxy_pass cannot have URI part if in some situations.

Reported by: zhoushulin1992@… Owned by:
Priority: minor Milestone:
Component: documentation Version: 1.18.x
Keywords: Cc: zhoushulin1992@…
uname -a: Linux xlarge 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.18.0
built by gcc 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
configure arguments: --prefix=/usr/local/nginx --with-pcre=/root/Downloads/pcre-8.43

Description

Directive "proxy_pass" cannot have URI part in some situation, but at present, the doc only record only a few cases in https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass, i.e. "When location is specified using a regular expression, and also inside named locations. In these cases, proxy_pass should be specified without a URI."

Besides the situations mentioned above, "proxy_pass" also should not have URI part inside "if" statement or "limit_except" block. It is better to supplement this.

Change History (0)

Note: See TracTickets for help on using tickets.