mirror of
https://github.com/nginx/nginx.git
synced 2026-08-04 14:58:20 +00:00
Fixed proxy_redirect off inheritance.
Example configuration to reproduce:
server {
proxy_redirect off;
location / {
proxy_pass http://localhost:8000;
proxy_redirect http://localhost:8000/ /;
location ~ \.php$ {
proxy_pass http://localhost:8000;
# proxy_redirect must be inherited from the level above,
# but instead it was switched off here
}
}
}
This commit is contained in:
parent
4a23bc5705
commit
3feafa765f
1 changed files with 2 additions and 0 deletions
|
|
@ -3292,6 +3292,8 @@ ngx_http_proxy_redirect(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
|||
return NGX_CONF_OK;
|
||||
}
|
||||
|
||||
plcf->redirect = 1;
|
||||
|
||||
value = cf->args->elts;
|
||||
|
||||
if (cf->args->nelts == 2) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue