只需一步,快速开始
举报
原帖由 qwe123 于 2009-12-17 14:06 发表 你用的框架吧? fleaphp thinkphp 还是codeigniter?或cake 、zend framework ? 里面应该有设置的,可以启用request_uri或其它方式,不一定非得pathinfo啊。
查看全部评分
location ~ .*\.(php|php5)?$ { fastcgi_pass unix:/tmp/php-cgi.sock; #fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fcgi.conf; }
location / { if (!-e $request_filename) { rewrite ^/(.*)$ /index.php/$1 last; } } location ~ .php$ { fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location ~ \.php($|/) { set $script $uri; set $path_info ""; if ($uri ~ "^(.+\.php)(/.+)") { set $script $1; set $path_info $2; }
本版积分规则 发表回复
Archiver|手机版|小黑屋|全球主机交流论坛
GMT+8, 2025-10-31 00:11 , Processed in 0.067064 second(s), 12 queries , Gzip On, MemCache On.
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.