一、環境 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。訪問成功。配置