简体   繁体   中英

HTTP to HTTPS with Azure CDN

Currently, TSL/SSL redirection works, but it renders an SSL certificate error. If I don't specify the domain name under the url attribute then it will redirect to the Azure origin site.

<action type="Redirect" url="domain name/{R:1}" redirectType="Permanent"/>

How do I resolve this?

According to your description, I could not face this issue when I configure an app service(default URL https://mywebapp.azurewebsites.net ) with HTTPS only on , and enable custom domain on Azure CDN endpoint. You could check the SSL certificate got configured successfully on the custom domain. It will look like this with a CDN managed certificate:

在此处输入图像描述

If you use your own SSL certificate, you must create it with an allowed certificate authority (CA) . You need to upload it on your Azure key vault which is in the same subscription as the Azure CDN profile. Then you need to register Azure CDN and grant Azure CDN access to your key vault . Then you could select the certificate for Azure CDN to deploy, and select On to enable HTTPS. You could follow these steps here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM