CI项目本地部署

孤人 提交于 2020-01-20 19:58:46

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;
        }

}

 

项目更改:

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!