commit | aa4492612bb4e80621680eeacb496c45166ac455 | [log] [tgz] |
---|---|---|
author | Maxim Dounin <mdounin@mdounin.ru> | Fri Dec 23 16:04:09 2011 +0000 |
committer | Maxim Dounin <mdounin@mdounin.ru> | Fri Dec 23 16:04:09 2011 +0000 |
tree | aadbf5f463e2728a03cb3cabd746298b29f95227 | |
parent | 2f6e243499d3ef0a8bbb811c68b1a169a4f8b71c [diff] |
Proxy: made proxy_pass with variables more consistent. If proxy_pass was used with variables and there was no URI component, nginx always used unparsed URI. This isn't consistent with "no variables" case, where e.g. rewrites are applied even if there is no URI component. Fix is to use the same logic in both cases, i.e. only use unparsed URI if it's valid and request is the main one.