WSO2 API 管理器公共 NAT IP
我已经在 windows server 2008 上安装了 api 管理器.服务器有一个 LAN-IP 和一个通过 NAT 的公共 IP.
示例:
LAN-IP:192.168.100.1
NAT 上的公共 IP:10.0.0.10
我想通过公共 IP 测试 API 管理器,但服务器只能在本地使用 LAN-IP.有人有想法,我怎样才能让 api 管理器在公共 IP 上工作?端口在防火墙上是开放的.
谢谢
I have installed the api manager on a windows server 2008. The server has a LAN-IP and a Public-IP over NAT.
Example:
LAN-IP: 192.168.100.1
Public-IP over NAT: 10.0.0.10
I want to test the API Manager over the Public-IP, but the Server works only local with the LAN-IP. Has someone an idea, how can I get the api manager to work over the Public-IP? The Ports are open on the firewall.
THX
请尝试以下配置.完成后注意重启服务器.
Please try out with the following configurations. Note to restart the server once done.
- 将 /repository/conf/carbon.xml 中的 HostName 和 MgtHostName 设置为公共 IP 地址.
- 将 <%APIM_HOME%>/repository/conf/axis2/axis2.xml 文件中的 http 和 https 的 bind-address 参数设置为公共 IP.
- 在 <%APIM_HOME$>/repository/conf/api-manager.xml 文件中设置如下.
http://<-- 公网IP -- >:${http.nio.port},https://<-- 公网IP -- >:${https.nio.port}
http://<-- Public-IP -- >:${http.nio.port},https://<-- Public-IP -- >:${https.nio.port}
谢谢,女娲.