windows在修改完nginx的项目启动位置和支持php的设置后,必须执行php-cgi.exe -b 127.0.0.1:9000-c才可以让nginx成功解析php文件
支持php的设置:
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;
}