uwsgi_bind

Syntax: uwsgi_bind address [transparent] | off;
Default:
Context: http, server, location

Makes outgoing connections to a uwsgi server originate from the specified local IP address with an optional port (1.11.2). Parameter value can contain variables (1.3.12). The special value off (1.3.12) cancels the effect of the uwsgi_bind directive inherited from the previous configuration level, which allows the system to auto-assign the local IP address and port.

The transparent parameter (1.11.0) allows outgoing connections to a uwsgi server originate from a non-local IP address, for example, from a real IP address of a client:

uwsgi_bind $remote_addr transparent;

In order for this parameter to work, it is necessary to run nginx worker processes with the superuser privileges and configure kernel routing table to intercept network traffic from the uwsgi server.

doc_nginx
2017-02-09 07:09:52
Comments
Leave a Comment

Please login to continue.