安装php7.4,建立文件内容:
location ~ [^/]\.php(/|$)
{
try_files $uri =404;
fastcgi_pass unix:/tmp/php-cgi-74.sock;
fastcgi_index index.php;
include fastcgi.conf;
include pathinfo.conf;
}
存盘时出现错误:nginx: [emerg] invalid number of arguments in "location" directive in /www/server/nginx/conf/enable-php.conf:2
nginx: configuration file /www/server/nginx/conf/nginx.conf test fail ed |