您好,直接在/www/server/nginx/conf目录下新建一个enable-php-82.conf文件,内容如下:
- location ~ [^/]\.php(/|$)
- {
- try_files $uri =404;
- fastcgi_pass unix:/tmp/php-cgi-82.sock;
- fastcgi_index index.php;
- include fastcgi.conf;
- include pathinfo.conf;
- }
复制代码
提示enable-php-82.conf文件不存在,这个主要是Nginx服务要使用的,如建站,用于解析PHP脚本的。
如果不存在此文件是无法正常建站以及解析PHP脚本的。 |