nginx configuration can only ip access
Newly added server (note is new, is not modified based on the original server)
server {
the listen 80 default;
server_name _;
return 403;
}
nginx php configuration
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
linux cmd command:
View port lsof -i: 9000 netstat -tnlp | grep 9000
See all ports cases netstat -tunlp