We have nginx/1.9.1
While doing phpinfo()
, not able to get the values of below parameter.
$_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?
See Question&Answers more detail:os