diff -ur nginx-1.7.6/src/http/modules/ngx_http_proxy_module.c nginx-1.7.6.new/src/http/modules/ngx_http_proxy_module.c
|
old
|
new
|
|
| 2876 | 2876 | ngx_conf_merge_ptr_value(conf->cookie_paths, prev->cookie_paths, NULL); |
| 2877 | 2877 | |
| 2878 | 2878 | #if (NGX_HTTP_SSL) |
| 2879 | | if (conf->upstream.ssl == NULL) { |
| | 2879 | if (conf->upstream.ssl == NULL && conf->upstream.upstream == NULL) { |
| 2880 | 2880 | conf->upstream.ssl = prev->upstream.ssl; |
| 2881 | 2881 | } |
| 2882 | 2882 | #endif |
| … |
… |
|
| 2905 | 2905 | } |
| 2906 | 2906 | |
| 2907 | 2907 | if (conf->upstream.upstream == NULL) { |
| | 2908 | if (conf->proxy_lengths == NULL) { |
| | 2909 | conf->proxy_lengths = prev->proxy_lengths; |
| | 2910 | conf->proxy_values = prev->proxy_values; |
| | 2911 | } |
| 2908 | 2912 | conf->upstream.upstream = prev->upstream.upstream; |
| 2909 | 2913 | conf->vars = prev->vars; |
| 2910 | 2914 | } |
| 2911 | 2915 | |
| 2912 | | if (conf->proxy_lengths == NULL) { |
| 2913 | | conf->proxy_lengths = prev->proxy_lengths; |
| 2914 | | conf->proxy_values = prev->proxy_values; |
| 2915 | | } |
| 2916 | | |
| 2917 | 2916 | if (conf->upstream.upstream || conf->proxy_lengths) { |
| 2918 | 2917 | clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module); |
| 2919 | 2918 | if (clcf->handler == NULL && clcf->lmt_excpt) { |