api 配置:
<Context docBase="zjzc-web-api" path="/api" reloadable="false"/>
haproxy 跳转:
acl api_req path_beg -i /api
use_backend appserver_8082 if api_req
jrhapt12:/usr/local/apache-tomcat-7.0.55_8082/webapps/zjzc-web-api> pwd
/usr/local/apache-tomcat-7.0.55_8082/webapps/zjzc-web-api
jrhapt12:/usr/local/apache-tomcat-7.0.55_8082/webapps/zjzc-web-api> cat a.html
test5555767
https://www.xxx.cn/api/a.html
访问方式