简体   繁体   English

Azure 应用网关 v2

[英]Azure application gateway v2

Could you please help me?请你帮助我好吗? I currently work with Azure application gateway waf v2 and when I try to access an application it redirects me perfectly but it does not take the variables我目前使用 Azure 应用程序网关 waf v2,当我尝试访问应用程序时,它完美地重定向了我,但它不接受变量

for example when I try to access https://toto.app.com/Event?hash=xxxxx&key=xxx this redirects me to the web app but does not take the hash and key into account, whereas if I access without an application gateway with xxxazurewebsites... it does take the hash and key例如,当我尝试访问https://toto.app.com/Event?hash=xxxxx&key=xxx时,这会将我重定向到 web 应用程序,但不会考虑 hash 和密钥,而如果我在没有应用程序网关的情况下访问使用 xxxazurewebsites...它确实需要 hash 和密钥

You can check this MsDocs to understand the Rewrite HTTP headers and URL with Application Gateway.您可以查看此MsDocs以了解使用应用程序网关重写 HTTP 标头和 URL。

If you want key values to pair with parameters, you can use query string for ex: it you want https://www.contoso.com/design/xyz to https://www.contoso.com/buy.xyz you can use condition in server variable如果您希望键值与参数配对,您可以使用查询字符串,例如:您想要https://www.contoso.com/design/xyzhttps://www.contoso.com/buy.xyz您可以服务器变量中的使用条件

在此处输入图像描述

Make use query string value and URL path value accordingly.相应地使用查询字符串值和 URL 路径值。

在此处输入图像描述

And check this supported list of variables in azure application gateway并在 azure 应用程序网关中检查此支持的变量列表

To know more in detail, refer this link.要了解更多详细信息,请参阅此链接。

Rewrite HTTP request and response headers in portal - Azure Application Gateway | 在门户中重写 HTTP 请求和响应标头 - Azure 应用程序网关 | Microsoft Learn 微软学习

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 403 禁止 microsoft-azure-application-gateway/v2 - 403 forbidden microsoft-azure-application-gateway/v2 来自 Azure 应用程序网关 V2 的多个登录提示 - Multiple login prompts from azure application gateway V2 错误 - 403 禁止 - Microsoft-Azure-Application-Gateway/v2 - Error - 403 Forbidden - Microsoft-Azure-Application-Gateway/v2 如何使用 azure 虚拟网关私下访问应用程序网关标准 v2 ip? - How to access the Application gateway standard v2 ip in private using azure virtual network gateway? ASP.NET MVC 错误 403 禁止 Microsoft-Azure-Application-Gateway/v2 - ASP.NET MVC error 403 forbidden Microsoft-Azure-Application-Gateway/v2 SQL Server Reporting Services (SSRS) Web 门户不适用于 Azure 应用程序网关 v2 - SQL Server Reporting Services (SSRS) web portal not working with Azure Application Gateway v2 无法使用 NSG 配置 Azure 应用网关 V2 - Azure App Gateway V2 cannot be configured with NSG 应用程序网关 v2 - 对多个侦听器使用相同的 SSL 证书? - Application Gateway v2 - Use same SSL cert for multiple Listeners? 使用 Azure Function v2 的自定义 Application Insight TelemetryInitializer - Custom Application Insight TelemetryInitializer using Azure Function v2 Azure Function App Core v2 中的 Application Insights - Application Insights in Azure Function App Core v2
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM