commit | f3075296375ec96c707fd479be870b8e38666e13 | [log] [tgz] |
---|---|---|
author | Maxim Dounin <mdounin@mdounin.ru> | Tue Dec 09 18:22:39 2014 +0300 |
committer | Maxim Dounin <mdounin@mdounin.ru> | Tue Dec 09 18:22:39 2014 +0300 |
tree | dbbc97131fb4ef89191476c9bb15f51e4b4475ad | |
parent | dbf4176a4adb0076bbfa0704b3a489889bfc7f1a [diff] |
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.