summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-06-22 09:29:10 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-06-22 09:29:10 +0000
commitd49e7d869c1608e8f001967add48833cedd4038c (patch)
treef3a566fa255a15f7303d495a06538219edd530f3
parent8a6c783ac7c6e7372e1a45eaf74448cedf4fbb24 (diff)
downloadnginx-d49e7d869c1608e8f001967add48833cedd4038c.tar.gz
nginx-d49e7d869c1608e8f001967add48833cedd4038c.tar.bz2
merge r2950, r2951:
cache related fixes: *) fix building --without-http-cache, broken in r2945 *) fix ./configure error message
-rw-r--r--auto/lib/md5/conf4
-rw-r--r--src/http/modules/ngx_http_proxy_module.c5
-rw-r--r--src/http/ngx_http_upstream.c5
3 files changed, 10 insertions, 4 deletions
diff --git a/auto/lib/md5/conf b/auto/lib/md5/conf
index d4ef0070e..246ee02f7 100644
--- a/auto/lib/md5/conf
+++ b/auto/lib/md5/conf
@@ -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
diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c
index 6e2d230b2..96bd89b6d 100644
--- a/src/http/modules/ngx_http_proxy_module.c
+++ b/src/http/modules/ngx_http_proxy_module.c
@@ -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;
}
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index 75f3641c4..67ae1bc1c 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -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;
}