ssl - 具有 SSL 的自定义子域未重定向到 Azure cloudapp

标签 ssl azure subdomain cname azure-deployment

我部署了一个 Azure 应用程序,我想对整个应用程序使用 SSL。

要保护我的应用:

-I made a subdomain in my site to point to the Azure application.
-I got a SSL in the name of my subdomain
-Add the certificate to the applicaton
-Loaded the certificate to the Azure hosted account
-Opened up a https endpoint in the application.

这就是问题所在。当我输入我的 url(带有子域)时,找不到该页面。但是,如果我在 url 中手动输入 https://,它将按原样转到该站点。

这是怎么回事?我只打开了一个 https 端点。我需要一个 http 端点吗?如果我这样做,我不能让用户在没有加密的情况下使用该应用程序,那么我将如何解决这个问题?

谢谢你的帮助!

最佳答案

我相信这不是特定的 Azure 问题。当输入不带 https://的 URL 时,浏览器会自动采用 http://协议(protocol)并将其添加到前面。由于您没有打开 http 端点,因此在连接时出现错误。

建议:开启http端点。在连接到 http 端点时将 URL 重定向/重写为 https。如何做到这一点取决于您用来开发站点的技术。(ASP.NET、MVC 等)

关于ssl - 具有 SSL 的自定义子域未重定向到 Azure cloudapp,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9048070/

相关文章:

python - 如何解决AttributeError : SMTP_SSL instance has no attribute '__exit__' in Python?

c - 为什么编译器在这种情况下使用 32 位寄存器将指针传递给 amd64 linux 上的函数

ssl - 使用 openssl 为生成的自签名证书指定天数(过期日期)

ios - 将 Azure AD 访问控制集成到 iOS 应用程序的社交身份验证

azure - 我只希望众多消息使用者中的一个能够根据 ID 处理消息,这可以通过 Azure 服务总线实现吗?

python - MySQL 服务器已消失 ConnectionResetError 10054 Flask SqlAlchemy

java - 使用 .p12 文件进行 SSL - 使用 Spring Boot

ssl - Nginx 使用 SSL 重定向子域

node.js - 在 Node.js 中使用动态子域

subdomain - 一个 CNAME 文件用于 2 个不同的域。 gh-pages X namecheap