应用程序网关标准V2和HTTP重写 [英] Application Gateway Standard V2 and HTTP Rewrites

查看:73
本文介绍了应用程序网关标准V2和HTTP重写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 

我正在尝试使用Application Gateway及其重写功能来执行以下操作。

I am trying to use an Application Gateway and its rewrite functionality to do the following.

我有两个App Service,一个名为A,一个名为B.我希望有一个名为"version"的自定义HTTP标头。如果HTTP自定义标头'version'为1,那么我希望URL转到App Service A,如果HTTP自定义标头'version'是2,那么我希望URL
转到App Service B.有意义吗?

I have two App Service, one called A and one called B. I want to have a custom HTTP header called 'version'. If the HTTP custom header 'version' is 1 then I want the URL to go to App Service A, if the HTTP custom header 'version' is 2 then I want the URL to go to App Service B. Does that make sense?

我想我必须为IF使用自定义标头,然后更改公共标题'Location'?然后回应。

I think I have to use a custom header for the IF and then change the common header 'Location' ? for the Then response.

但我无法让它发挥作用。任何人都可以帮忙吗?

But I cannot get it to work. Can any one help?

谢谢

Suz

推荐答案

 

Hi, 

此新功能是根据条件重写标头,不根据标头条件路由请求。 

This new feature is to rewrite the headers based on condition not to route the request based on the header condition. 

您可以提供反馈 在用户语音中,如果您需要您要求的功能。 

You can provide your feedback  in the User Voice, if you need the feature which you are asking for. 

问候, 

Msrini


这篇关于应用程序网关标准V2和HTTP重写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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