$_SERVER['REMOTE_PORT'] not giving value

2019-01-15 10:38发布

We have nginx/1.9.1.

While doing phpinfo(), not able to get the values of below paramentera.

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

Though we have below settings in fastcgi config 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 guide where's the mistake?

0条回答
登录 后发表回答