$ _SERVER ['REMOTE_PORT'] does not give a value

We have nginx / 1.9.1.

By executing phpinfo (), it is not possible to get values ​​below paramentera.

_SERVER["REMOTE_PORT"]  no value
_ENV["REMOTE_PORT"] no value

Although we have settings in the fastcgi configuration file

fastcgi_param  REMOTE_ADDR        $remote_addr;
fastcgi_param  REMOTE_PORT        $remote_port;
fastcgi_param  SERVER_ADDR        $server_addr;
fastcgi_param  SERVER_PORT        $server_port;
fastcgi_param  SERVER_NAME        $server_name;

Can someone please indicate where the error is?

+3
source share

Source: https://habr.com/ru/post/1531741/


All Articles