|
Linux部署环境
访问 /index.php/文件夹/Type?action=list (Type是PHP文件) 访问是404
访问 /index.php/Login(Login是PHP文件) 可以访问
Windows 开发环境下都没问题
网上看了好多帖子试了都不行 求大神解答。
- server {
- listen 80;
- server_name test.yudinger.com;
- root /html/001;
- location / {
- index index.html index.htm index.php;
- #autoindex on;
- try_files $uri $uri/ /index.php$uri?$args;
- }
- location ~ \.php(.*)$ {
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
- include fastcgi_params;
- }
- }
复制代码 |
|