通过CDN访问源站提示重定向的次数过多(阿里云)

CDN的回源端口设置为80,而源站又开启了HTTP重定向至HTTPS的功能,这样的话客户端无论是通过HTTP还是HTTPS访问CDN加速域名时,CDN在回源的时候都是使用HTTP请求源站,此时会触发源站的HTTPS强制跳转逻辑,然后源站会要求CDN重新发送一个HTTPS的请求,但是CDN仍然会发送HTTP请求,就会出现反复重定向问题。

What is the Difference Between A URL And A URI?

As a developer, you’ve already heard about URL countless times. You may have also come across URI before and now you want to know what is the difference between the two if there’s any. They are often used interchangeably but we have to differentiate between the two. Before doing a comparison, let’s see what each of them means by definition.