azureazure-web-app-serviceazure-application-gatewayazure-waf

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

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


Solution

  • You can check this MsDocs to understand the Rewrite HTTP headers and URL with Application Gateway.

    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.xyzyou can use condition in server variable

    enter image description here

    Make use query string value and URL path value accordingly.

    enter image description here

    And check this supported list of variables in azure application gateway

    To know more in detail, refer this link.

    Rewrite HTTP request and response headers in portal - Azure Application Gateway | Microsoft Learn