fastcgi_bind

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

This directive appeared in version 0.8.22.

Makes outgoing connections to a FastCGI 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 fastcgi_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 FastCGI server originate from a non-local IP address, for example, from a real IP address of a client:

fastcgi_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 FastCGI server.

doc_nginx
2017-02-09 07:05:56
Comments
Leave a Comment

Please login to continue.