]> git.kaiwu.me - nginx.git/commitdiff
r2754 merge:
authorIgor Sysoev <igor@sysoev.ru>
Mon, 18 May 2009 16:13:02 +0000 (16:13 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 18 May 2009 16:13:02 +0000 (16:13 +0000)
merge SSL context inside "if" block

src/http/modules/ngx_http_proxy_module.c

index f5c6ceeaf5c8e7a02a00ab469f6fd42c3c3efd17..23e07d3249bffa2a461e6d86e0b7a5eb31ca7316 100644 (file)
@@ -1899,6 +1899,12 @@ ngx_http_proxy_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child)
         conf->proxy_values = prev->proxy_values;
     }
 
+#if (NGX_HTTP_SSL)
+    if (conf->upstream.ssl == NULL) {
+        conf->upstream.ssl = prev->upstream.ssl;
+    }
+#endif
+
     ngx_conf_merge_uint_value(conf->headers_hash_max_size,
                               prev->headers_hash_max_size, 512);