comparison src/http/modules/ngx_http_memcached_module.c @ 6530:1d0e03db9f8e

Upstream: the "transparent" parameter of proxy_bind and friends. This parameter lets binding the proxy connection to a non-local address. Upstream will see the connection as coming from that address. When used with $remote_addr, upstream will accept the connection from real client address. Example: proxy_bind $remote_addr transparent;
author Roman Arutyunyan <arut@nginx.com>
date Fri, 18 Dec 2015 19:05:27 +0300
parents f01ab2dbcfdc
children 06cf0c4b8618
comparison
equal deleted inserted replaced
6529:cb8177ca0990 6530:1d0e03db9f8e
59 NGX_HTTP_LOC_CONF_OFFSET, 59 NGX_HTTP_LOC_CONF_OFFSET,
60 0, 60 0,
61 NULL }, 61 NULL },
62 62
63 { ngx_string("memcached_bind"), 63 { ngx_string("memcached_bind"),
64 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, 64 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE12,
65 ngx_http_upstream_bind_set_slot, 65 ngx_http_upstream_bind_set_slot,
66 NGX_HTTP_LOC_CONF_OFFSET, 66 NGX_HTTP_LOC_CONF_OFFSET,
67 offsetof(ngx_http_memcached_loc_conf_t, upstream.local), 67 offsetof(ngx_http_memcached_loc_conf_t, upstream.local),
68 NULL }, 68 NULL },
69 69