server {
listen 80;
server_name www.linux.com;
index index.html index.htm;
root /data0/htdocs/www;
location ~ (\.php)$ {
listen 80;
server_name www.linux.com;
index index.html index.htm;
root /data0/htdocs/www;
location ~ (\.php)$ {
proxy_pass http://192.168.1.188:80;
}
本文介绍了一个具体的Nginx服务器配置案例,详细展示了如何通过Nginx配置文件来指定监听端口、服务器名称、默认索引文件、根目录路径及PHP请求的代理传递等关键设置。
524

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



