CI项目本地部署

nginx 配置

server  {
        listen 80;
        server_name www.xxx.cn wwwcdn.xxx.cn;

        allow  all;
        autoindex off;

        root   /export/manager/OL/xxx;
        index index.php  index.html index.htm;


        location ~ .php($|/) {
                fastcgi_pass   main_backend;
                fastcgi_index  index.php;
                fastcgi_split_path_info ^(.+.php)(.*)$;
                fastcgi_param   PATH_INFO $fastcgi_path_info;
                fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
                include        fastcgi_params;
        }


        if (!-e $request_filename) {  #这样可以在链接中去掉index.php
            rewrite ^/(.*)$ /index.php/$1 last;
            break;
        }


        location ~ /.ht {
                deny  all;
        }

}

项目更改:

原文地址:https://www.cnblogs.com/bandbandme/p/12219130.html