Rewrite hostname - App Gateway

Artem Pankratov 0 Reputation points
2024-02-18T20:39:24.64+00:00

Hello,

I there a way to rewrite hostname in Azure Application Gateway? I need a way to send requests to another host based on headers.

Thank you in advance,
Artem

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
{count} votes

1 answer

Sort by: Most helpful
  1. KapilAnanth 49,851 Reputation points Moderator
    2024-02-20T15:44:30.08+00:00

    @Artem Pankratov ,

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    • It is not feasible to rewrite the FQDN using Rewrite Rules
    • While you may change the "Host" header to point to a different FQDN, the requests will still go the Backend Pool which you have configured in your Routing Rule.
    • This is exactly what is happening in the example references
      • User's image

    Instead, you should consider "Redirection",

    Hope this clarifies.

    Cheers,

    Kapil


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.