标签: azure https azure-web-app-service
我已将Azure Web服务配置为使用自定义域,并成功将根域和子域(www)都进行了验证,此外还将TLS证书绑定到两者。
自定义域页面:
当我导航到http://example.com时,浏览器正确地重定向到https://example.com。
但是,当我导航到子域http://www.example.com时,浏览器不会重定向到https。但是,我可以通过https://www.example.com通过https直接导航到我的子域。
Azure为什么不在子域上强制执行“仅HTTPs”设置?
更新:TLS / SSL设置页面的屏幕截图:
答案 0 :(得分:0)
看来您所做的一切都还可以... 我只是发布对我有用的东西,您可以看看并检查一下。
在映射自定义域之后,导航到TLS / SSL设置,启用仅Https:
并确保在自定义域页面中也启用仅HTTPs :
这是我的测试: