462902059 发表于 2017-5-20 16:38:09

控制器下子目录访问404问题

Linux部署环境
访问 /index.php/文件夹/Type?action=list (Type是PHP文件) 访问是404
访问 /index.php/Login(Login是PHP文件) 可以访问

Windows 开发环境下都没问题
网上看了好多帖子试了都不行 求大神解答。
server {
      listen       80;
      server_nametest.yudinger.com;
      root   /html/001;
      location / {
            indexindex.html index.htm index.php;
            #autoindexon;
          try_files $uri $uri/ /index.php$uri?$args;
      }

      location ~ \.php(.*)$ {          
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_indexindex.php;
            fastcgi_split_path_info^((?U).+\.php)(/?.+)$;
            fastcgi_paramSCRIPT_FILENAME$document_root$fastcgi_script_name;
            fastcgi_paramPATH_INFO$fastcgi_path_info;
            fastcgi_paramPATH_TRANSLATED$document_root$fastcgi_path_info;
            include      fastcgi_params;
      }
}

Hex 发表于 2017-5-30 01:16:21

贴一下你的目录结构吧,目前看不出有什么问题。
页: [1]
查看完整版本: 控制器下子目录访问404问题