1.在nigx配置不改变的项目:
location /mdm8 {
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:8081/mdm8;
client_max_body_size 10m;
}
location /icore {
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:8081/icore;
client_max_body_size 10m;
}
location /iconsole {
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:8081/iconsole;
client_max_body_size 10m;
}
2.在本地的tomcat的server.xml:配置路径:
<Context crossContext="true" docBase="G:workspace runkframeworkmdm-mdmloginmdm8" path="/mdm8"/>
<Context path="/icore" crossContext="true" docBase="G:zhongxingframeworki-core argeti-core-0.0.2-SNAPSHOT" />
<Context path="/bpm" crossContext="true" docBase="G:zhongxingframeworki-bpm argeti-bpm-0.0.2-SNAPSHOT" />
3.在本地tomcat的caralina.bat配置:set JAVA_OPTS=%JAVA_OPTS% -Dmdm.home="G:zhongxingmdm8MDM_HOME" -Dmdm.cv="false"(防止两个校验报错)
4.配置eclipse里面想运行的tomcat加项目
5.启动ngix.exe并且在浏览器输入:http://localhost:80,查看Nginx是否启动
6.启动两个tomcat