如何通過nginx來訪問本機(jī)開放的不同端口的tomcat,比如本機(jī)有六個(gè)tomcat分別為tomcat18080tomcat28081tomcat38082tomcat48083tomcat58084tomcat68085然后服務(wù)器新部署nginx服務(wù),讓所有的服務(wù)都能通過nginx的80來訪問比如http://192.168.102.100/tomcat1訪問tomcat1下面的項(xiàng)目http://192.168.102.100/tomcat2訪問tomcat2下面的項(xiàng)目http://192.168.102.100/tomcat3訪問tomcat3下面的項(xiàng)目http://192.168.102.100/tomcat4訪問tomcat4下面的項(xiàng)目
nginx通過url訪問本機(jī)不同tomcat
紫衣仙女
2019-05-21 16:32:24