我读了很多关于这个话题的信息,但是我没有答案。
我有3台服务器,包含以下组件
所有使用LDAP的服务器和我没有问题要登录到IS,网关,发行者和存储与我的Ldap登录。
在Publisher配置文件中,我编写了网关server2,但是当我发布新的测试API时,我可以访问这个API (server3:8243/ddd/v1/aaa),但是通过网关,我没有访问https://server2:8243/ddd/v1/aaa,我得到了一个错误404。
如何配置我的WSO2发布服务器或网关。
此时,我在密钥存储库中没有生成的ssl密钥。你能告诉我如何解决这个问题来测试我的测试API吗?
发布于 2018-05-24 22:27:52
当您从发布服务器发布API时,它会将API的Synapse工件推送到网关节点。但是在您的示例中,由于您没有更改Publisher/Store节点中的任何配置,所以它指向服务器本身。
您可以编辑服务器3和点服务器2,这是您的网关节点。在APIM/存储库/conf位置中编辑api-manager.xml文件。
<APIGateway>
<Environments>
<Environment type="hybrid" api-console="true">
<Name>Production and Sandbox</Name>
<Description>This is a hybrid gateway that handles both production and sandbox token traffic.</Description>
<ServerURL>https://[API-Gateway-Host-or-IP]:9443/services/</ServerURL>
<Username>${admin.username}</Username>
<Password>${admin.password}</Password>
<GatewayEndpoint>http://[API-Gateway-Host]:8280,https://[API-Gateway-Host]:8243</GatewayEndpoint>
</Environment>
</Environments>
</APIGateway>https://stackoverflow.com/questions/50503480
复制相似问题