Azure前门http-> https

发布于 2025-02-08 07:49:28 字数 810 浏览 1 评论 0原文

每个人! 我有自己的服务仅由HTTP工作,该服务是Azure前门的后端。 如果我想与HTTP一起使用我的服务,我可能会使用Azure AppGateway - 允许我使用SSL终止。 Azure前门是否允许这样做?

现在,我有下一个配置: 端口8443

配置的前门服务: ScreenShot

和带有cert(letsencrypt)的随附自定义

域检索 200 ok revensce

但是,当我使用https -https -https-我得到错误

那么,AFD是否允许HTTPS覆盖HTTP?

多谢!

upd:路由配置 一个 两个

everyone!
I have own service working only by HTTP which set up as a backend in Azure FrontDoor.
If I want to use my service with HTTPS I may use Azure AppGateway - which allows to me to use ssl-termination.
Is Azure FrontDoor allows do the same?

For now I have next configuration:
Service on port 8443

Configured FrontDoor:
Screenshot

And attached custom domain with cert (letsEncrypt)

So that, when I going to http - I retrieve 200 OK responce

But, when I use HTTPS - I get an error

So, does AFD allow to cover HTTP by HTTPS?

Thanks a lot!

UPD: Route config
one
two

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

离笑几人歌 2025-02-15 07:49:28

显然,您的后端仅配置为收听HTTP(在端口8443上)。从您的配置中,看起来您的后端不支持HTTPS。因此,为了使此工作起作用,您可以更改路由配置:

转发协议:http(而不是“匹配传入”)

,即使传入的客户端请求在HTTPS上,前门也会始终将HTTP与后端交谈。

注意:通常,我仍然建议在前门和您的后端之间使用HTTP,因为这可能是一条很长的网络路径,即使这一切都停留在Microsoft骨干线上,大多数人也更喜欢在那里加密流量。

Your backend is apparently only configured to listen to HTTP (on port 8443). From your config, it does not look like your backend would support HTTPS. So in order for this to work, you can change your routing configuration:

Forwarding Protocol: HTTP (instead of "match incoming")

This way, Front Door will always talk HTTP to the backend, even if the incoming client request was on HTTPS.

Note: Generally I would still recommend to use HTTPS between Front Door and your backend, since this can be quite a long network path, even though it all stays on the Microsoft backbone, most people prefer to have encrypted traffic there, too.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文