摘要: 一、Nginx与Tomcat连接搭建的环境,Nginx设置了前端的访问路径为 (1)前端代码配置: 1 root /usr/local/nginx/html; 2 index index.html index.htm; View Code (2)root 访问文件的根目录,默认nginx一起动 一访 阅读全文
posted @ 2018-01-10 11:23 北极的大企鹅 阅读(469) 评论(0) 推荐(0) 编辑
摘要: 一、nginx搭建好后无法访问后端Tomcat项目 通过项目名称过滤的方式访问Tomcat,比如项目名称叫easy。 修改其server下的location目录,配置如下: 1 server 2 { 3 #监听的端口 4 listen *:80 default; 5 6 #访问的服务器(localh 阅读全文
posted @ 2018-01-10 10:50 北极的大企鹅 阅读(1569) 评论(0) 推荐(0) 编辑
阅读 - 79万