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

[URL] 控制器下子目录访问404问题

[复制链接]
发表于 2017-5-20 16:38:09 | 显示全部楼层 |阅读模式
Linux部署环境
访问 /index.php/文件夹/Type?action=list (Type是PHP文件) 访问是404
访问 /index.php/Login(Login是PHP文件) 可以访问

Windows 开发环境下都没问题
网上看了好多帖子试了都不行 求大神解答。
  1. server {
  2.         listen       80;
  3.         server_name  test.yudinger.com;
  4.         root   /html/001;
  5.         location / {
  6.             index  index.html index.htm index.php;
  7.             #autoindex  on;
  8.             try_files $uri $uri/ /index.php$uri?$args;
  9.         }

  10.         location ~ \.php(.*)$ {            
  11.             fastcgi_pass   127.0.0.1:9000;
  12.             fastcgi_index  index.php;
  13.             fastcgi_split_path_info  ^((?U).+\.php)(/?.+)$;
  14.             fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
  15.             fastcgi_param  PATH_INFO  $fastcgi_path_info;
  16.             fastcgi_param  PATH_TRANSLATED  $document_root$fastcgi_path_info;
  17.             include        fastcgi_params;
  18.         }
  19. }
复制代码
发表于 2017-5-30 01:16:21 | 显示全部楼层
贴一下你的目录结构吧,目前看不出有什么问题。

本版积分规则