thinkphp nginx 上配置 并解决get获取到数据现象

server {
        listen       80;
        server_name  XXXX.funova.net XXX.funova.com;
        root   /opt/newgm;
        index  index.php;
    
    location / {
        try_files $uri /index.php$uri;
    }

    location ~ .+\.php($|/) {
        fastcgi_pass  127.0.0.1:9000;
        fastcgi_index index.php;
        
        fastcgi_split_path_info ^(.+\.php)(/.*)$;
        fastcgi_param PATH_INFO $fastcgi_path_info;

        include fastcgi.conf;
    }

    access_log  /logs/nginx/newgm.access main;
    error_log  /logs/nginx/newgm.error;

        location ~ /.svn/{
                deny all;
        }

}

 

posted @ 2015-07-27 17:26  麦田守望者~  阅读(394)  评论(0编辑  收藏  举报