ThinkPHP nginx配置

浏览:10355 发布日期:2014/09/26 分类:求助交流
從網上找了很多答案,從論壇裏也找了答案,可是各種配置後就是不能正確引導頁面 URL_MODEL 0 1 2 全試過了,只有0 傳統方法能正常使用 pathinfo使用不了, 求教各位大大 提供一個可用的 配置 感謝!

目前配置:

location ~ \.php(.*)$
{
# Pass the PHP files to PHP FastCGI for processing
fastcgi_index index.php;
try_files $uri = 404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param script_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
最佳答案
评论( 相关
后面还有条评论,点击查看>>