版本nginx/1.12.2
location ~ \.php$ {
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
include fastcgi_params;
}
我机器上的fastcgi_param值不对, 改成上图成功, 备份下
版本nginx/1.12.2
location ~ \.php$ {
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
include fastcgi_params;
}
我机器上的fastcgi_param值不对, 改成上图成功, 备份下
本文标题:备份Nginx设置php的方法
本文链接:https://www.haomeiwen.com/subject/eysnwqtx.html
网友评论