windows下nginx 配置 tomcat 集群

一、环境 nginx

1.1)tomcat1 域名 http://localhost:8081浏览器

1.2)tomcat2 域名 http://localhost:8083 tomcat

1.3)nginx服务器 版本 nginx-1.7.9服务器


二、配置spa

2.1)tomcat1配置片断get

2.2)tomcat2配置片断域名


2.3)nginx 配置集群集群


三、启动nginx或nginx -s reload重启nginx.在浏览器输入地址http://localhost。访问成功。配置

相关文章
相关标签/搜索