diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2014-12-09 18:22:39 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2014-12-09 18:22:39 +0300 |
commit | 827b2511e6ffee946b7b5c00a67bc50449fc2d72 (patch) | |
tree | dbbc97131fb4ef89191476c9bb15f51e4b4475ad /src/core/ngx_string.h | |
parent | 8d7c6491fe3dc7cee758a1ec75daf120cd9d82fc (diff) | |
download | nginx-827b2511e6ffee946b7b5c00a67bc50449fc2d72.tar.gz nginx-827b2511e6ffee946b7b5c00a67bc50449fc2d72.zip |
Proxy: fixed incorrect URI change due to if (ticket #86).
In the following configuration request was sent to a backend without
URI changed to '/' due to if:
location /proxy-pass-uri {
proxy_pass http://127.0.0.1:8080/;
set $true 1;
if ($true) {
# nothing
}
}
Fix is to inherit conf->location from the location where proxy_pass was
configured, much like it's done with conf->vars.
Diffstat (limited to 'src/core/ngx_string.h')
0 files changed, 0 insertions, 0 deletions