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;
本文提供了一个Nginx服务器的基础配置示例,包括监听端口、服务器名称、根目录及PHP文件处理等核心设置,并介绍了如何允许通过IP访问服务器目录。
1398

被折叠的 条评论
为什么被折叠?



