server {
listen 80;
root /var/www/html;
server_name xxx.cn;
index index.php index.html index.htm;
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
}
location ~ \.php {
root /var/www/html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
页面访问提示:模块不存在:index.php注意:提示的是index.php不存在,不是index,域名/index访问正常,直接访问域名就提示index.php不存在。
找不到问题出在哪里,求助!
最佳答案
