HTTP到HTTPS重定向的规则,以及Azure CDN Premium Verizon的默认文档 [英] Rules for HTTP to HTTPS redirect, and default document for Azure CDN Premium Verizon

查看:154
本文介绍了HTTP到HTTPS重定向的规则,以及Azure CDN Premium Verizon的默认文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在Azure中使用Premium Verizon CDN,并使HTTPS工作(感谢MS支持团队!)

I have been using Premium Verizon CDN in Azure, and got HTTPS working (thanks to the MS support team!)

目前,我在使用规则引擎时遇到以下任务的问题:

Right now, I'm having some trouble with the Rules Engine for the following tasks:

1。将HTTP重定向到HTTPS

1. Redirect HTTP to HTTPS

  例如:http://www.example.com/* - > 301重定向 - > https://www.example.com/*

   Ex: http://www.example.com/* -> 301 redirect -> https://www.example.com/*

2。加载默认index.html

2. Load default index.html

  例如:https://www.example.com应该返回https://example_cdn.azureedge.net/index.html

   Ex: https://www.example.com should return https://example_cdn.azureedge.net/index.html

#1似乎正在运行,但它重定向到了错误链接,如下:

#1 seems to be working, but it's redirecting to a wrong link, like so:

  错误:http://www.example.com - > 301重定向 - > https://www.example.com/origin_blob_path/index.html

   Wrong: http://www.example.com -> 301 redirect -> https://www.example.com/origin_blob_path/index.html

  正确:http://www.example.com - > 301重定向 - > https://www.example.com/(返回index.html)

   Correct: http://www.example.com -> 301 redirect -> https://www.example.com/ (returns index.html)

有人可以帮我解决具体规则吗?

Can someone help me with the exact rules for this?

通常情况下我会坚持这个,但4小时的刷新时间让我感到害怕,并且有关于如何执行此操作的非常稀疏的文档。

Normally I would hammer at this, but the 4 hour refresh time is killing me, and there is very sparse documentation on how to do this.

我将根据请求提供规则XML。

I will give the rule XML on request.

谢谢,

David

推荐答案

嗨大卫, 

Hi David, 

你能分享我的XML,我可以在我的订阅中尝试这个并检查我是否可以使用它。 

Can you share me the XML, I can try this in my subscription and check if I can get this working. 

另外,我看到你提到的,它附加了/ origin blob指向URL的路径。您是否将存储blob作为CDN的来源? 

Also, I see that you mentioned, it appends /origin blob path to the URL. Do you have the storage blob as the origin to the CDN? 

为什么不能在Storage blob中尝试静态网页你不需要指定index.html吗?

Why can't you try static web page in Storage blob where you don't need to specify the index.html?

问候, 

Msrini


这篇关于HTTP到HTTPS重定向的规则,以及Azure CDN Premium Verizon的默认文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆