点击页面出的错也不一样 我真心无力再搞这个了求大神们帮忙
FILE: /home/wwwroot/www.23bt.net/Thinkphp/Lib/Core/App.class.php LINE: 122
TRACE
[14-09-03 05:39:09] /home/wwwroot/www.23bt.net/Thinkphp/Lib/Core/App.class.php (122) _404(无法加载模块:�)
[14-09-03 05:39:09] /home/wwwroot/www.23bt.net/Thinkphp/Lib/Core/App.class.php (207) App::exec()
[14-09-03 05:39:09] /home/wwwroot/www.23bt.net/Thinkphp/Lib/Core/Think.class.php (39) App::run()
[14-09-03 05:39:09] /home/wwwroot/www.23bt.net/Thinkphp/Common/runtime.php (242) Think::start()
[14-09-03 05:39:09] /home/wwwroot/www.23bt.net/Thinkphp/ThinkPHP.php (30) require(/home/wwwroot/www.23bt.net/Thinkphp/Common/runtime.php)
[14-09-03 05:39:09] /home/wwwroot/www.23bt.net/index.php (11) require(/home/wwwroot/www.23bt.net/Thinkphp/ThinkPHP.php)
模式为URL_MODEL == 2conf配置
server
{
listen 80;
#listen [::]:80;
server_name 23bt.net www.23bt.net;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/www.23bt.net;
include thinkphp.conf;
access_log /home/wwwlogs/23bt.net.log access;
}
thinkphp.conf配置location /project/ {
index index.php;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php/$1 last; #pathinfo模式 任选其一
break;
}
}
location ~ .+\.php($|/) {
set $script $uri;
set $path_info "/";
if ($uri ~ "^(.+\.php)(/.+)") {
set $script $1;
set $path_info $2;
}
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php?IF_REWRITE=1;
include /usr/local/nginx/conf/fastcgi_params;
fastcgi_param PATH_INFO $path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $script;
}
最佳答案
