server { listen 80; server_name _; location / { root html; index index.html index.php; } location ~ .*\.(php|php5)?$ { root html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi.conf; } }
nginx配置文件
最新推荐文章于 2024-08-23 09:49:22 发布
该配置文件是Nginx服务器的一个简单设置,用于监听80端口并处理域名下的HTTP请求。它定义了两个location块,一个用于服务静态HTML文件,另一个用于通过fastcgi处理PHP或PHP5文件,连接到本地的9000端口。
摘要由CSDN通过智能技术生成