策码兄弟

ubuntu+php5.6+redis+mysql5.5+nginx

thinkphp :


location / {
                if (!-e $request_filename) {
                        rewrite ^(.*)$ /index.php?s=$1 last;
                        break;
                }       
                
        location / {
                try_files $uri $uri/ =404;
        }       
        
location ~ \.php$ {
                include snippets/fastcgi-php.conf;
        #       
        #       # With php7.0-cgi alone:
        #       fastcgi_pass 127.0.0.1:9000;
        #       # With php7.0-fpm:
                fastcgi_pass unix:/run/php/php5.6-fpm.sock;
                       fastcgi_index  index.php;
           fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
           include        fastcgi_params;  
           
       }

posted @ 2016-05-24 16:35  策码秀才  阅读(771)  评论(0编辑  收藏  举报
策码兄弟