WSO2 API 管理器不在 AWS EC2 中工作
WSO2 API Manager not working in AWS EC2
我已经在 AWS EC2 中配置了 API 管理器和预配置身份服务器的组合。
问题是 API 管理器在内部引用私有 IP 并使用私有 IP 调用 API 并且无法从互联网访问私有 IP。
假设如果我有 /users/add API ,当我使用 swagger 控制台时,它试图调用不起作用的 privateIp/users/add ...
如何解决这个问题?
我尝试使用 publicip/users/add 进行攻击;但它都没有给出任何结果。
谢谢
您可以在 carbon.xml
中为 HostName
和 MgtHostName
.
设置您的 public IP 或主机名
<!--
Host name or IP address of the machine hosting this server
e.g. www.wso2.org, 192.168.1.10
This is will become part of the End Point Reference of the
services deployed on this server instance.
-->
<!--HostName>www.wso2.org</HostName-->
<!--
Host name to be used for the Carbon management console
-->
<!--MgtHostName>mgt.wso2.org</MgtHostName-->
此外,您还必须将所有配置文件中的 ${carbon.local.ip}
替换为必需的 IP/Hostname。
我已经在 AWS EC2 中配置了 API 管理器和预配置身份服务器的组合。 问题是 API 管理器在内部引用私有 IP 并使用私有 IP 调用 API 并且无法从互联网访问私有 IP。 假设如果我有 /users/add API ,当我使用 swagger 控制台时,它试图调用不起作用的 privateIp/users/add ... 如何解决这个问题? 我尝试使用 publicip/users/add 进行攻击;但它都没有给出任何结果。
谢谢
您可以在 carbon.xml
中为 HostName
和 MgtHostName
.
<!--
Host name or IP address of the machine hosting this server
e.g. www.wso2.org, 192.168.1.10
This is will become part of the End Point Reference of the
services deployed on this server instance.
-->
<!--HostName>www.wso2.org</HostName-->
<!--
Host name to be used for the Carbon management console
-->
<!--MgtHostName>mgt.wso2.org</MgtHostName-->
此外,您还必须将所有配置文件中的 ${carbon.local.ip}
替换为必需的 IP/Hostname。