]> git.kaiwu.me - nginx.git/commit
Upstream: inheritance of proxy_pass and friends (ticket #645).
authorMaxim Dounin <mdounin@mdounin.ru>
Tue, 9 Dec 2014 15:21:55 +0000 (18:21 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Tue, 9 Dec 2014 15:21:55 +0000 (18:21 +0300)
commitc863e1b3b56e647b9cc9c9aeed53a9ab309194ed
treea93d708bb96b5183047dabcb367a0deeada2a631
parent88ed2d39afcc00d46a640de542f6b491413e38d6
Upstream: inheritance of proxy_pass and friends (ticket #645).

Instead of independant inheritance of conf->upstream.upstream (proxy_pass
without variables) and conf->proxy_lengths (proxy_pass with variables)
we now test them both and inherit only if neither is set.  Additionally,
SSL context is also inherited only in this case now.

Based on the patch by Alexey Radkov.
src/http/modules/ngx_http_fastcgi_module.c
src/http/modules/ngx_http_proxy_module.c
src/http/modules/ngx_http_scgi_module.c
src/http/modules/ngx_http_uwsgi_module.c