<pre name="code" class="sql">比如把zjtest3的环境映射到外网1.1.1.82,域名usedown.com 指向1.1.1.82 hapeoxy 上配置 usedown.com 重定向到zjtest3.com 是没有办法把系统发布到外网的。
网站通过外网跳转:
flow 配置DNS,通过外网域名跳转
jrhapt01:/usr/local/apache-tomcat-7.0.55_8081/logs> grep zjcap catalina.out | head -5
2015-11-04 23:00:09,251 INFO com.zjzc.common.utils.HttpUtil - 请求登录接口: https://www.zjcap.cn/api/login/login
2015-11-04 23:00:09,293 INFO com.zjzc.common.utils.HttpUtil - 请求接口(Auth): https://www.zjcap.cn/api/client/info
2015-11-04 23:00:09,320 INFO com.zjzc.common.utils.HttpUtil - 请求接口(Auth): https://www.zjcap.cn/api/client/reg/login/device
2015-11-04 23:00:10,350 INFO com.zjzc.common.utils.HttpUtil - 请求接口(Auth): https://www.zjcap.cn/api/client/asset
2015-11-04 23:00:20,325 INFO com.zjzc.common.utils.HttpUtil - 请求接口(Auth): https://www.zjcap.cn/api/client/info
api:
jrhapt11:/usr/local/apache-tomcat-7.0.55_8082/logs> grep zjcap catalina.out | head -5
2015-11-04 23:03:13,432 DEBUG com.zjzc.common.utils.StaticTool - key:serverUrl | value: https://www.zjcap.cn/api/register/device/detail
2015-11-04 23:04:04,432 DEBUG com.zjzc.common.utils.StaticTool - key:serverUrl | value: https://www.zjcap.cn/api/register/device/detail
2015-11-04 23:05:00,116 INFO com.zjzc.common.utils.HttpUtil - 请求接口: https://www.zjcap.cn/pay/interface/querypayorder, 耗时=-75
2015-11-04 23:05:00,152 INFO com.zjzc.common.utils.HttpUtil - 请求接口: https://www.zjcap.cn/pay/interface/querybindcardorder, 耗时=-68
2015-11-04 23:05:00,202 INFO com.zjzc.common.utils.HttpUtil - 请求接口: https://www.zjcap.cn/pay/interface/querypayorder, 耗时=-85
pay:
jrhapt22:/usr/local/apache-tomcat-7.0.55_8083/logs> grep zjcap catalina.out |head -5
http-bio-8083-exec-1 2015-11-04 23:05:00,112 INFO ZJZC_PAY_SECURITY_LOG - Remote Ip: 121.40.118.102. Request Url: http://www.zjcap.cn/pay/interface/querybindcardorder. Request Param: orderNo=
[201511041421589767ff82164948f4ac]&clientSn=[1822]&cardNo=[5187107515017983]&. allowAccess=true
http-bio-8083-exec-7 2015-11-04 23:05:00,190 INFO ZJZC_PAY_SECURITY_LOG - Remote Ip: 121.40.118.102. Request Url: http://www.zjcap.cn/pay/interface/querybindcardorder. Request Param: orderNo=
[201511042007118012dc6f8cfcea94e4]&clientSn=[1829]&cardNo=[6217880600000013900]&. allowAccess=true
http-bio-8083-exec-6 2015-11-04 23:05:00,309 INFO ZJZC_PAY_SECURITY_LOG - Remote Ip: 121.40.118.102. Request Url: http://www.zjcap.cn/pay/interface/querypayorder. Request Param: orderNo=
[201511041613033133c674e2c58fb44e]&. allowAccess=true
http-bio-8083-exec-3 2015-11-04 23:05:00,387 INFO ZJZC_PAY_SECURITY_LOG - Remote Ip: 121.40.118.102. Request Url: http://www.zjcap.cn/pay/interface/querypayorder. Request Param: orderNo=
[20151104161440484c2c2fe2d1aff433]&. allowAccess=true
http-bio-8083-exec-10 2015-11-04 23:05:00,746 INFO ZJZC_PAY_SECURITY_LOG - Remote Ip: 121.40.118.102. Request Url: http://www.zjcap.cn/pay/interface/querypayorder. Request Param: orderNo=
[20151104211753977b8afa545cbdc454]&. allowAccess=true
迁移到内网后,需要在每台APP上添加hosts解析,才能使用