]> git.kaiwu.me - nginx.git/commitdiff
merge SSL context inside "if" block
authorIgor Sysoev <igor@sysoev.ru>
Fri, 24 Apr 2009 19:56:09 +0000 (19:56 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 24 Apr 2009 19:56:09 +0000 (19:56 +0000)
src/http/modules/ngx_http_proxy_module.c

index 60182d6035796723fb7d13406c7f8c53a49f7370..628b32d4afeb7d782805f34274a1c0660dc9444f 100644 (file)
@@ -2192,6 +2192,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);