mirror of
https://github.com/nginx/nginx.git
synced 2024-12-20 06:03:31 -06:00
"proxy_redirect default" may not be used if a proxy_pass uses variables
This commit is contained in:
parent
931d88c7c1
commit
7fa1c07896
@ -2754,6 +2754,13 @@ ngx_http_proxy_redirect(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
||||
}
|
||||
|
||||
if (ngx_strcmp(value[1].data, "default") == 0) {
|
||||
if (plcf->proxy_lengths) {
|
||||
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
||||
"\"proxy_redirect default\" may not be used "
|
||||
"with \"proxy_pass\" directive with variables");
|
||||
return NGX_CONF_ERROR;
|
||||
}
|
||||
|
||||
if (plcf->url.data == NULL) {
|
||||
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
||||
"\"proxy_redirect default\" must go "
|
||||
|
Loading…
Reference in New Issue
Block a user