Forum Discussion
Azure Application Gateway- one Header/Domain to redirect to different Applications ?
Hello, vijaycloud
Actually you achieve the requested configuration if you configure path-based routing rules on the application gateway. By this the Application gateway will route request to different backend pools, based on the requested path.
I would advise you to check the documentation on the following link https://docs.microsoft.com/en-us/azure/application-gateway/create-url-route-portal
hope you find this answer as helpful,
Charbel Hanna
Thanks for reply, I think this will apply only if we have one web application and path based routing can be done on basis of directory path. But in this case They using two diff-diff applications, one is already migrated on cloud (which is running successfully) and second application going to be migrated.
Option 1- We can host multiple subdomains of the same parent domain on the same application gateway deployment. (But customer don't want use subdomain)
Option-2- Application Gateway supports multiple applications each listening on different ports, but this scenario requires the applications to accept traffic on non-standard ports. This is often not a configuration that customer want.
please correct me if my understanding is wrong..
Thanks.
Vijay
- CharbelhannaJul 08, 2020MCT
Dear vijaycloud
I am sorry for the late reply,
the application gateway support path based routing for applications that residing on different back-end pools, therefore could respond to your request. it is not required that all applications to reside on a single back-end pool. so in brief you can host multiple applications using the same domain but on different paths and these applications can reside on different back-end pools / servers.
I am intending to write a detailed blog for this purpose and will share it with you once it is ready.
Regards,
Charbel Hanna
- vijaycloudJul 14, 2020Former Employee
Thanks for your suggestion, I have configured two web apps in under one domain with path based routing configuration which is working fine under the same domain "astar.sg/psta" and "astar.sg/sms". However, they are using telerik control and also other application dynamic control (webresource.axd and scriptresource.axd) which caused an issue. For example,when both SMS and PSTA are configured under the same domain, webresource.axd and scriptresource.axd will be redirected to root url ie. http://appgwip/webresource.axd , it should be http://appgwip/sms/webresource.axd which result in 404 or 502 error
Any suggestion ?
Regards!
Vijay