页面nginx配置 1,前端页面放在域名根目录,比如,http://www.xuecheng.com/ ,对应的nginx配置: #门户 location / { alias D:/Z_lhy/SpringCloud/xuecheng_online/www/xc-ui-pc-static-portal/; index index.html; } 页面目录: 接口nginx配置 2,前端请求接口路径,在域名后面加一个目录 url : "http://www.xuecheng.com/api/aut…