server {
listen 80 default_server;
server_name _ www.show.com;
root /data/www;
location / {
index index.php index.html index.htm;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Nginx服务器允许IP浏览服务器目录。
设置方法:
1、 listen 80 default_server;
2、 server_name _ www.show.com;