Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_uwsgi_module.xml @ 1696:d855e7cc3b2f
Added the "transparent" parameter of proxy_bind and friends.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Thu, 28 Apr 2016 17:27:44 +0300 |
parents | 9c98c4498f08 |
children | ae6bdb65ca7f |
comparison
equal
deleted
inserted
replaced
1695:aa95174efa80 | 1696:d855e7cc3b2f |
---|---|
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | 8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
9 | 9 |
10 <module name="Module ngx_http_uwsgi_module" | 10 <module name="Module ngx_http_uwsgi_module" |
11 link="/en/docs/http/ngx_http_uwsgi_module.html" | 11 link="/en/docs/http/ngx_http_uwsgi_module.html" |
12 lang="en" | 12 lang="en" |
13 rev="25"> | 13 rev="26"> |
14 | 14 |
15 <section id="summary"> | 15 <section id="summary"> |
16 | 16 |
17 <para> | 17 <para> |
18 The <literal>ngx_http_uwsgi_module</literal> module allows passing | 18 The <literal>ngx_http_uwsgi_module</literal> module allows passing |
37 | 37 |
38 | 38 |
39 <section id="directives" name="Directives"> | 39 <section id="directives" name="Directives"> |
40 | 40 |
41 <directive name="uwsgi_bind"> | 41 <directive name="uwsgi_bind"> |
42 <syntax><value>address</value> | <literal>off</literal></syntax> | 42 <syntax><value>address</value> [transparent] | <literal>off</literal></syntax> |
43 <default/> | 43 <default/> |
44 <context>http</context> | 44 <context>http</context> |
45 <context>server</context> | 45 <context>server</context> |
46 <context>location</context> | 46 <context>location</context> |
47 | 47 |
51 Parameter value can contain variables (1.3.12). | 51 Parameter value can contain variables (1.3.12). |
52 The special value <literal>off</literal> (1.3.12) cancels the effect | 52 The special value <literal>off</literal> (1.3.12) cancels the effect |
53 of the <literal>uwsgi_bind</literal> directive | 53 of the <literal>uwsgi_bind</literal> directive |
54 inherited from the previous configuration level, which allows the | 54 inherited from the previous configuration level, which allows the |
55 system to auto-assign the local IP address. | 55 system to auto-assign the local IP address. |
56 </para> | |
57 | |
58 <para id="uwsgi_bind_transparent"> | |
59 The <literal>transparent</literal> parameter (1.11.0) allows | |
60 outgoing connections to a uwsgi server originate | |
61 from a non-local IP address, | |
62 for example, from a real IP address of a client: | |
63 <example> | |
64 uwsgi_bind $remote_addr transparent; | |
65 </example> | |
66 In order for this parameter to work, | |
67 it is necessary to run nginx worker processes with the | |
68 <link doc="../ngx_core_module.xml" id="user">superuser</link> privileges | |
69 and configure kernel routing table | |
70 to intercept network traffic from the uwsgi server. | |
56 </para> | 71 </para> |
57 | 72 |
58 </directive> | 73 </directive> |
59 | 74 |
60 | 75 |