Forcing HTTPS with Azure CDN

橙三吉。 提交于 2019-12-03 05:39:41
Valentin Petkov

I am using Azure Verizon Premium CDN.

I did two rules. The order of the rules matter. You will need to wait up to 4 hours after each test.

image remove index.html 2 continue as image 3

=============== END FIRST RULE ==================

here as text
1. redirect HTTP to HTTPs
rule--> (.*) destination https://%{host}/$1

  1. remove remove index.html did not work 100% ;-(
    URL Rewrite
    2.A Source ((?:[^\?]/)?)($|\?.) -Destination -> $1index.html$2
    2.B Source ((?:[^\?]/)?[^\?/.]+)($|\?.) -Destination - > $1/index.html$2

I'm using Azure Verizon Premium.

In this case you might want to redirect your http requests to your https endpoint. In this case you must add one rule for each endpoint you want this behavior:

  match condition:

    if Request Scheme = HTTP

  feature:

    Redirect - Code: 301, source: (.*), destination: https://%{host}/$1

This response was found at docs microsoft

Alok Singh

I am using below configuration for redirecting any request to https

IF

  • Request Schema, HTTP

Feature

  • URL Redirect
  • Code: 301
  • Source: (.*)
  • Destination: https://%{host}/$1
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!