if (!-e $request_filename) {
rewrite (.*) /index.php;
break;
}
上面这个是有的,但是怎么重写location把php的解析给fastcgi呢?
location ~ .php$
{
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/html/$fastcgi_script_name;
include fastcgi_params;
}
这样写貌似不行,求指点
阅读全文
收起全文