我先来说一下我的环境 我装的是nginx/0.6.35 应用程序是基于开源框架ThinkPHP 写的。
我的nginx配置为
server {
listen 222.186.33.116:80;
server_name www.ibugao.cn;
access_log /var/log/nginx/localhost.access.log;
location / {
root /var/www/nginx-default/ibugaocn;
index index.html index.php index.htm;
rewrite ^/(.*)$ /index.php/$1 last;
}
location /doc {
root /usr/share;
autoindex on;
allow 127.0.0.1;
deny all;
}
location /images {
root /var/www/nginx-default/ibugaocn;
autoindex on;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/www/nginx-default/ibugaocn;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
set $path_info "";
set $real_script_name $fastcgi_script_name;
if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {
set $real_script_name $1;
set $path_info $2;
}
fastcgi_param SCRIPT_FILENAME /var/www/nginx-default/ibugaocn$real_script_name;
fastcgi_param SCRIPT_NAME $real_script_name;
fastcgi_param PATH_INFO $path_info;
include /etc/nginx/fastcgi_params;
}
}
我在线的问题是 www.ibugao.cn访问 就变成 500 Internal Server Error
访问www.ibugao.cn/index.php 可以访问 但点击链接就会500错误 伪路径是http://www.ibugao.cn/Admin-index 实际路径是 http://www.ibugao.cn/Admin/index
我在贴下错误路径
2009/07/21 09:31:18 [error] 16667#0: *73 rewrite or internal redirection cycle while processing "/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/", client: 59.62.65.216, server: www.ibugao.cn, request: "GET / HTTP/1.1", host:
2009/07/21 09:32:52 [error] 16667#0: *93 rewrite or internal redirection cycle while processing "/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/Admin/index", client: 59.62.65.216, server: www.ibugao.cn, request: "GET /Admin/index HTTP/1.1", host: "www.ibugao.cn"
2009/07/21 09:32:44 [error] 16667#0: *86 rewrite or internal redirection cycle while processing "/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/Admin-index", client: 59.62.65.216, server: www.ibugao.cn, request: "GET /Admin-index HTTP/1.1", host: "www.ibugao.cn", referrer: "http://www.ibugao.cn/index.php"
在线等 有什么情况不清楚的 我再补充~ |