]> git.kaiwu.me - nginx.git/commitdiff
merge r2950, r2951:
authorIgor Sysoev <igor@sysoev.ru>
Mon, 22 Jun 2009 09:29:10 +0000 (09:29 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 22 Jun 2009 09:29:10 +0000 (09:29 +0000)
cache related fixes:

*) fix building --without-http-cache, broken in r2945
*) fix ./configure error message

auto/lib/md5/conf
src/http/modules/ngx_http_proxy_module.c
src/http/ngx_http_upstream.c

index d4ef0070ecd98406c9caeaa68384f21a891cfe79..246ee02f7a7f141391e17a3882b941e0e8453d14 100644 (file)
@@ -100,9 +100,9 @@ cat << END
 
 $0: error: the HTTP cache module requires md5 functions
 from OpenSSL library.  You can either disable the module by using
---without-http_cache option, or install the OpenSSL library into the system,
+--without-http-cache option, or install the OpenSSL library into the system,
 or build the OpenSSL library statically from the source with nginx by using
---with-openssl=<path> option.
+--with-http_ssl_module --with-openssl=<path> options.
 
 END
             exit 1
index 6e2d230b22c3ca7f7a3c680f29e04ac95dc98040..96bd89b6d5297adc5b0775c4eced6ac2c3d125cc 100644 (file)
@@ -2343,7 +2343,10 @@ ngx_http_proxy_merge_headers(ngx_conf_t *cf, ngx_http_proxy_loc_conf_t *conf,
     }
 
     if (conf->headers_set_hash.buckets
-        && ((conf->upstream.cache == NULL) == (prev->upstream.cache == NULL)))
+#if (NGX_HTTP_CACHE)
+        && ((conf->upstream.cache == NULL) == (prev->upstream.cache == NULL))
+#endif
+       )
     {
         return NGX_OK;
     }
index 75f3641c4ffd99367730ba7342e8430d655c1d2b..67ae1bc1ce11331fbc34d22f252f6b565022c6b2 100644 (file)
@@ -4086,7 +4086,10 @@ ngx_http_upstream_hide_headers_hash(ngx_conf_t *cf,
         conf->hide_headers_hash = prev->hide_headers_hash;
 
         if (conf->hide_headers_hash.buckets
-            && ((conf->cache == NULL) == (prev->cache == NULL)))
+#if (NGX_HTTP_CACHE)
+            && ((conf->cache == NULL) == (prev->cache == NULL))
+#endif
+           )
         {
             return NGX_OK;
         }