2

we have a scenario where we have multiple azure app services where we have our Web APIs deployed . however we need all the app services to use the same domain name (not sub domains) e.g http://example.com/api1 on one app service and http://example.com/api2 on other app service. we have looked at using application gateway but it seems that URL rewriting is not supported yet. is there a anyway to achieve this without using third party components?

Thanks

Azure Ninja
  • 261
  • 4
  • 15
  • Is it acceptable to use Azure virtual directory? If it is acceptable,more detail please refer to the [blog](https://blogs.msdn.microsoft.com/tomholl/2014/09/21/deploying-multiple-virtual-directories-to-a-single-azure-website/). You also could refer to another [SO thread](https://stackoverflow.com/questions/43073570/create-virtual-directory-on-same-azure-web-app?answertab=active#tab-top). – Tom Sun - MSFT Sep 04 '17 at 09:03

1 Answers1

2

Do you mean URL routing or rewriting (rewriting as in mod_rewrite)?

URL-based routing is fully supported in Azure Application Gateway.

URL routing

Rule example

evilSnobu
  • 24,582
  • 8
  • 41
  • 71
  • would this support using multiple app services and point to the same domain i.e. for http://example.com/api1 direct to http://epi1.azurewebsites.net app service and for http://example.com/api2 direct to http://epi2.azurewebsites.net app service – Azure Ninja Sep 04 '17 at 09:24
  • Yes indeed, that's what it's for. – evilSnobu Sep 04 '17 at 12:13