前后端分离

前后端分离之项目部署

Backend

前后端分离的架构模式被越来越多的中大型项目所采用,这就给项目部署提出了要求 需求 假如有这么一个系统 用户端:提供给用户浏览的(纯前端项目,http://xx.com) 管理员端:供作者维护这个系统(纯前端项目,http://xx.com/admin) 服务端:为用户端和管理员端提供接口(纯后端项目,http://xx.com/api) nginx配置 xx.com.conf server { listen 80; server_name xx.com; # 用户端 index index.php index.htm index.html defaul...