问题
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
回答1:
Please try out with the following configurations. Note to restart the server once done.
- Set the HostName and MgtHostName in <%APIM_HOME%>/repository/conf/carbon.xml to the public IP address.
- Set the bind-address parameter of the http and https s found in the <%APIM_HOME%>/repository/conf/axis2/axis2.xml file to the public IP.
- Set the as below in the <%APIM_HOME$>/repository/conf/api-manager.xml file.
http://<-- Public-IP -- >:${http.nio.port},https://<-- Public-IP -- >:${https.nio.port}
Thanks, Nuwan.
来源:https://stackoverflow.com/questions/14141094/wso2-api-manager-public-nat-ip