Nginx 配置 (personality)

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

 

 

Published 29 original articles · won praise 5 · Views 7976

Guess you like

Origin blog.csdn.net/qq_25194685/article/details/105195163