不支持 thikphp 的 pathinfo模式
不支持 thikphp 的pathinfo模式 , 怎么个改配制文件。 哪位哥能, 出招解决一下。 https://bbs.vpser.net/thread-8876-1-1.html 不行呀。 老大。 还有别的弄法不。 68 location ~ .*\.php69 {
70 try_files $uri =404;
71 fastcgi_passunix:/tmp/php-cgi.sock;
72 fastcgi_index index.php;
73 fastcgi_read_timeout 500;
74 include fcgi.conf;
75
76 set $path_info "";
77 set $real_script_name $fastcgi_script_name;
78 if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {
79 set $real_script_name $1;
80 set $path_info $2;
81 }
82 fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;
83 fastcgi_param SCRIPT_NAME $real_script_name;
84 fastcgi_param PATH_INFO $path_info;
85 }
86 location /Admin/ {
87 if (!-e $request_filename){
88 rewrite^/Admin/(.*)$/Admin/index.php/$1last;
89 }
90 }
91 location / {
92 if (!-e $request_filename) {
93 rewrite^/(.*)$/index.php/$1last;
94 break;
95 }
96 }
加这段解决
不过还有一个问题:
ip:88 会丢失端口号码
页:
[1]