WSO2 API 管理器端口 [英] WSO2 API Manager Ports

查看:43
本文介绍了WSO2 API 管理器端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要发布为在端口 80 和 443 而不是 8280 和 8243 上运行而开发的所有 API.

I am having a requirement to publish all APIs developed to run on ports 80 and 443 instead of 8280 and 8243.

我如下更改了axis2.xml并重新启动了API Manager服务器.

I changed the axis2.xml as below and restarted the API Manager server.

<parameter name="port" locked="false">80</parameter>
<parameter name="port" locked="false">443</parameter>

我可以在 API 商店中看到已发布的 API,分别显示 80 和 443 端口.但是,当我尝试使用 Postman(如下面的 URL)对其进行测试时,它会引发以下错误.

I can see published APIs in API store showing 80 and 443 ports respectively. But when I am trying to test it using Postman like below URL, it throws the below error.

网址:http://localhost:80/pizza &https://localhost:443/pizza

错误:HTTP 错误 404.未找到请求的资源.

Error: HTTP Error 404. The requested resource is not found.

如果缺少任何配置,请提出建议.

Please suggest if there is any configuration missing.

谢谢.

推荐答案

我认为你做不到.如果您想使用 80/443 公开您的 API,您需要使用反向代理将 APIM 置于前端,如 [1] 中所述.

I don't think you can do that. If you want to expose your APIs with 80/443, you need to front APIM with a reverse proxy as explained in [1].

[1] https://docs.wso2.com/display/AM210/Adding+a+Reverse+Proxy+Server

这篇关于WSO2 API 管理器端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆