0

So I'm trying to use Application Gateway in Azure and trying to do the following:

Single domain (app.mydomain.com) with path based routing to different web apps

like: http://app.mydomain.com/app1 http://app.mydomain.com/app2

Any idea how to configure it in Application Gateway?

I'm keep getting 502 Error when I did the routing to my web apps.

Ranch Camal
  • 501
  • 1
  • 4
  • 12

1 Answers1

1

Any idea how to configure it in Application Gateway?

If you want to use path-based routing in the Application Gateway. Sure, it is possible.

We can use the routing rules to point to a specific backend pool. That backend pool will point to whatever servers you want handling that request.

For more information you could following this tutorial. And you also could refer to this blog to get more detail steps

Tom Sun - MSFT
  • 24,161
  • 3
  • 30
  • 47
  • blog link helped Key part is to add the Virtual directory to the Web App and do the HTTPSettings Binding through powershell. Then everything worked! – Ranch Camal Aug 29 '18 at 00:41
  • 1
    I am glad to know that it could help you. – Tom Sun - MSFT Aug 29 '18 at 00:42
  • Trying to accomplish the same but with ssl bindings on app services. Added custom domain to first app service, configured ssl binding, but adding the same cutom domain fails with error that domail already assosiated with another app service. – Vasyl Senko Feb 22 '19 at 11:16