thinkphp3.2.3在ubuntu中nginx的配置问题

浏览:1332 发布日期:2016/04/22 分类:求助交流 关键字: 环境配置 ngnix thinkphp3.2.3
紧急求助,在unbuntu里面的nginx配置thinkphp3.2.3的,总是不成功,具体nginx中的配置如下:server {
    listen 80 default_server;
    listen [::]:80 default_server ipv6only=on;
    root /home/ml;
    index index.php index.html index.htm;
    server_name localhost;

    location / {
        if (!-e $request_filename){
        rewrite ^(.*)$ /index.php?s=$1 last;
        break;
        }    
    }

    location ~ \.php{    
    # Pass the PHP files to PHP FastCGI for processing
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    fastcgi_pass unix:/var/run/php5-fpm.sock;    
    fastcgi_index index.php;
    fastcgi_param PATH_INFO $fastcgi_path_info;
    fastcgi_param CT_DEV_MODE 'true';    
    include fastcgi_params;
    }
}
比如域名是abc.com,输入 abc.com/Admin ,确定后应该会自动变成abc.com/Admin/Public/login.html。但是却是很奇怪的变成了abc.com.php/Admin/Public/login.html。请问这是什么问题。怎么配置才能让3.2.3正常运行,跪求正确的配置
最佳答案
评论( 相关
后面还有条评论,点击查看>>