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;

        }



}

 

你可能感兴趣的:(thinkphp)