简体   繁体   中英

Azure Front Door Rule Regex

I am trying to create a rule in Azure Front Door to match the first folder in the request path and then use that to set a request header to the back-end origin group.

https://myfd.azurefd.net/**config**/some1/some2/some3/test.html https://myfd.azurefd.net/**identity**/some1/some2/some3/

I was able to do this in Application Gateway and get it to work as follows:

App Gateway Config

AG条件

AG 然后

However, I cannot get this to work in FD as per the following config:

Azure Front Door Config

Azure FD 规则

Azure Front Door is offering 3 tiers of services; the feature and optimization " Regular expression in the rules engine " is not available in the Classic tier . It was the root of the problem here. Consider the Standard or Premium tiers. Please see the screenshot below.

Step1: Front Door created with Premium tier在此处输入图像描述

Step2: Created a rule engine with Regular expression 在此处输入图像描述

在此处输入图像描述

hope this helps!

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