例如,我有一个名为 MyApp 的 Azure Web 应用程序,作为 MyApp.azurewebsites.net 在 Azure 上托管。据我了解,我不需要做任何事情来使用 SSL 保护 URL,因为默认情况下,它是使用单个证书完成的。所以我已经可以让我的用户通过 https://MyApp.azurewebsites.net 访问该应用程序了,开箱即用,安全无虞。
但是,假设我有另一个名为 www.MyApp.com 的 URL,我想将其指向(重定向)到 https://MyApp.azurewebsite.net .我是否必须使用证书保护 www.MyApp.com?
最佳答案
Do I have to secure www.MyApp.com with a certificate?
是的,我们可以从 official document 获得更多详细信息.
To secure your custom domain name with HTTPS, you bind a custom SSL certificate to that custom domain in Azure.
在绑定(bind)自定义证书之前,我们需要做以下事情:
Configure the custom domain - App Service only allows adding a certificate for a domain name that's already configured in your app. For instructions, see Map a custom domain name to an Azure app.
Scale up to Basic tier or higher App Service plans in lower pricing tiers don't support custom SSL certificates. For instructions, see Scale up an app in Azure.
Get an SSL certificate - If you do not already have one, you need to get one from a trusted certificate authority (CA).
关于ssl - 使用 HTTPS 保护我的 Azure Web 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42146702/