nginx配置详解
一、配置访问xxx.php文件的支持 此时的nginx程序是一个服务器端的代理服务器,nginx接收到客户端xxx.php文件的请求,将这个请求交给本机9000端口的php-fpm程序处理,php-fpm程序以html格式将 处理结果返回个nginx location ~ \.php$ { root html; #站点根目录 fastcgi_pass 127.0.0.1:9000; #cgi程序的端口 fastcgi_index index.php; #主页文件名 include fastcgi.conf; #引入配置文件 } 二、日志设置 来源: https://www.cnblogs.com/fanshehu/p/11878721.html