diff options
author | Roman Arutyunyan <arut@nginx.com> | 2015-12-18 19:05:27 +0300 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2015-12-18 19:05:27 +0300 |
commit | be79f5cb16eeb452e2a9e343a89f89b3b47bc5a2 (patch) | |
tree | 00ab618ce2f89cd97f91982cf822f74cc8e16754 /src/http/modules/ngx_http_uwsgi_module.c | |
parent | 77ec993fd7300423aab8f6c798082b9421f51a24 (diff) | |
download | nginx-be79f5cb16eeb452e2a9e343a89f89b3b47bc5a2.tar.gz nginx-be79f5cb16eeb452e2a9e343a89f89b3b47bc5a2.zip |
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;
Diffstat (limited to 'src/http/modules/ngx_http_uwsgi_module.c')
-rw-r--r-- | src/http/modules/ngx_http_uwsgi_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_uwsgi_module.c b/src/http/modules/ngx_http_uwsgi_module.c index fef2c4650..a03c6f697 100644 --- a/src/http/modules/ngx_http_uwsgi_module.c +++ b/src/http/modules/ngx_http_uwsgi_module.c @@ -196,7 +196,7 @@ static ngx_command_t ngx_http_uwsgi_commands[] = { NULL }, { ngx_string("uwsgi_bind"), - NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, + NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE12, ngx_http_upstream_bind_set_slot, NGX_HTTP_LOC_CONF_OFFSET, offsetof(ngx_http_uwsgi_loc_conf_t, upstream.local), |