用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1311|回复: 0
收起左侧

nginx下url的问题 (已解决)

[复制链接]
发表于 2014-8-11 23:19:49 | 显示全部楼层 |阅读模式
本帖最后由 dai 于 2014-8-11 23:37 编辑

网上的例子看遍了- - 实在找不到解决的办法了,求大神帮我看看
我访问的连接 http://admin.jinri.info/admin.php/DaiLogin/showLogin

nginx的配置
server {
        listen       80;
        server_name  jinri.info www.jinri.info;
        charset utf-8;
        index index.html index.htm index.php;
        root   /home/wwwroot;

        location / {
                index index.html index.htm index.php;
                if (!-e $request_filename)
                {
                         rewrite (.*) /index.php/$1 last;
                }
        }
        location ~ .*\.(php|php5)?$
        {
                fastcgi_pass  unix:/tmp/php-cgi.sock;
                fastcgi_index index.php;
                include fcgi.conf;
        }

        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
            expires      30d;
        }
        location ~ .*\.(js|cs)?$ {
                expires      12h;
        }
}



nginx报错
2014/08/11 23:26:22 [notice] 7051#0: *892 "(.*)" matches "/admin.php/DaiLogin/showLogin", client: 122.234.233.171, server: jinri.info, request: "GET /admin.php/DaiLogin/showLogin HTTP/1.1", host: "jinri.info"
2014/08/11 23:26:22 [notice] 7051#0: *892 rewritten data: "/index.php//admin.php/DaiLogin/showLogin", args: "", client: 122.234.233.171, server: jinri.info, request: "GET /admin.php/DaiLogin/showLogin HTTP/1.1", host: "jinri.info"
2014/08/11 23:26:22 [notice] 7051#0: *892 "(.*)" matches "/index.php//admin.php/DaiLogin/showLogin", client: 122.234.233.171, server: jinri.info, request: "GET /admin.php/DaiLogin/showLogin HTTP/1.1", host: "jinri.info"
2014/08/11 23:26:22 [notice] 7051#0: *892 rewritten data: "/index.php//index.php//admin.php/DaiLogin/showLogin", args: "", client: 122.234.233.171, server: jinri.info, request: "GET /admin.php/DaiLogin/showLogin HTTP/1.1", host: "jinri.info"
2014/08/11 23:26:22 [notice] 7051#0: *892 "(.*)" matches "/index.php//index.php//admin.php/DaiLogin/showLogin", client: 122.234.233.171, server: jinri.info, request: "GET /admin.php/DaiLogin/showLogin HTTP/1.1", host: "jinri.info"
2014/08/11 23:26:22 [notice] 7051#0: *892 rewritten data: "/index.php//index.php//index.php//admin.php/DaiLogin/showLogin", args: "", client: 122.234.233.171, server: jinri.info, request: "GET /admin.php/DaiLogin/showLogin HTTP/1.1", host: "jinri.info"
2014/08/11 23:26:22 [notice] 7051#0: *892 "(.*)" matches "/index.php//index.php//index.php//admin.php/DaiLogin/showLogin", client: 122.234.233.171, server: jinri.info, request: "GET /admin.php/DaiLogin/showLogin HTTP/1.1", host: "jinri.info"
2014/08/11 23:26:22 [notice] 7051#0: *892 rewritten data: "/index.php//index.php//index.php//index.php//admin.php/DaiLogin/showLogin", args: "", client: 122.234.233.171, server: jinri.info, request: "GET /admin.php/DaiLogin/showLogin HTTP/1.1", host: "jinri.info"
2014/08/11 23:26:22 [notice] 7051#0: *892 "(.*)" matches "/index.php//index.php//index.php//index.php//admin.php/DaiLogin/showLogin", client: 122.234.233.171, server: jinri.info, request: "GET /admin.php/DaiLogin/showLogin HTTP/1.1", host: "jinri.info"
2014/08/11 23:26:22 [notice] 7051#0: *892 rewritten data: "/index.php//index.php//index.php//index.php//index.php//admin.php/DaiLogin/showLogin", args: "", client: 122.234.233.171, server: jinri.info, request: "GET /admin.php/DaiLogin/showLogin HTTP/1.1", host: "jinri.info"
2014/08/11 23:26:22 [notice] 7051#0: *892 "(.*)" matches "/index.php//index.php//index.php//index.php//index.php//admin.php/DaiLogin/showLogin", client: 122.234.233.171, server: jinri.info, request: "GET /admin.php/DaiLogin/showLogin HTTP/1.1", host: "jinri.info"
2014/08/11 23:26:22 [notice] 7051#0: *892 rewritten data: "/index.php//index.php//index.php//index.php//index.php//index.php//admin.php/DaiLogin/showLogin", args: "", client: 122.234.233.171, server: jinri.info, request: "GET /admin.php/DaiLogin/showLogin HTTP/1.1", host: "jinri.info"
2014/08/11 23:26:22 [notice] 7051#0: *892 "(.*)" matches "/index.php//index.php//index.php//index.php//index.php//index.php//admin.php/DaiLogin/showLogin", client: 122.234.233.171, server: jinri.info, request: "GET /admin.php/DaiLogin/showLogin HTTP/1.1", host: "jinri.info"
2014/08/11 23:26:22 [notice] 7051#0: *892 rewritten data: "/index.php//index.php//index.php//index.php//index.php//index.php//index.php//admin.php/DaiLogin/showLogin", args: "", client: 122.234.233.171, server: jinri.info, request: "GET /admin.php/DaiLogin/showLogin HTTP/1.1", host: "jinri.info"
2014/08/11 23:26:22 [notice] 7051#0: *892 "(.*)" matches "/index.php//index.php//index.php//index.php//index.php//index.php//index.php//admin.php/DaiLogin/showLogin", client: 122.234.233.171, server: jinri.info, request: "GET /admin.php/DaiLogin/showLogin HTTP/1.1", host: "jinri.info"解决地址:http://codeigniter.org.cn/forums/thread-7815-1-1.html

本版积分规则