]> git.kaiwu.me - nginx.git/commitdiff
allow memached_pass inside "if" block
authorIgor Sysoev <igor@sysoev.ru>
Thu, 27 Dec 2007 14:19:30 +0000 (14:19 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 27 Dec 2007 14:19:30 +0000 (14:19 +0000)
src/http/modules/ngx_http_memcached_module.c

index 76a37e169496b93294ef1f1c00df87cb16e2f9db..1f156cd4207a67dbc3ab0eace505733a20208b75 100644 (file)
@@ -58,7 +58,7 @@ static ngx_conf_bitmask_t  ngx_http_memcached_next_upstream_masks[] = {
 static ngx_command_t  ngx_http_memcached_commands[] = {
 
     { ngx_string("memcached_pass"),
-      NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1,
+      NGX_HTTP_LOC_CONF|NGX_HTTP_LIF_CONF|NGX_CONF_TAKE1,
       ngx_http_memcached_pass,
       NGX_HTTP_LOC_CONF_OFFSET,
       0,