如何解决Ocelot 微网关托管在 IIS 中
嗨,我正在尝试为我们对开发人员的实验测试实施 ocelot。 这是我想通过 ocelot 到达的 api 端点。两个项目都使用 443 端口。 但是一直收到 502 错误的网关。
端点 => https://localhost/document/api/v1/Documents/XYZ
"ReRoutes": [
{
"DownstreamPathTemplate": "/document/api/v1/Documents/{name}","DownstreamScheme": "https","DownstreamHostAndPorts": [
{
"Host": "localhost","Port": 443
}
],"UpstreamPathTemplate": "/apigateway/{name}/document","UpstreamHttpMethod": [ "Post" ],"Priority": 0
}
],“全局配置”:{ "BaseUrl": "https://localhost:443" } }
微网关别名 =>"apigateway" Api别名=>“文档”
此外,我能够在visiual studio 上进行调试,但是每当我在本地 IIS 上托管这两个应用程序时,都会收到 502 错误网关
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。