nginx php url重写 last是什么意思

2025-04-23 20:43:04
推荐回答(1个)
回答1:

location ~ \.php$ {

root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
把上面一段代码添加到server段里面去。。。记得 检测自己的php是否启动,9000端口是否开启
lsof -i:9000