nginx配置如下:
server{
listen 80;
server_name newapp.risingwine.com;
root /home/www/app;
location / {
index index.php;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}但是我要访问http://xxx.com/index.php/help这种带有index.php的会报错:无法加载模块:Index.php,怎么破!!求助大神 最佳答案