0
votes

I have Application Gateway with url based routing, /app1/ points to app1 app service, and /app2/ points to app2 app service.

I have domain test.com pointing to Application Gateway. So test.com/app1 routes to app1, and test.com/app2 to app2.

Next step is to configure ssl settings for both app services (I do not use ssl offloading here). Added test.com custom domain to app1, configured ssl bindings, adding a custom domain to app2 fails with a message:

Hostname is already being used in the following App: app1. Please remove the Hostname from app1, and try again

1
i think you need to reuse existing listener?4c74356b41
@4c74356b41 but I try to configure ssl on app services not on listenerVasyl Senko
ah, you mean on the web app?4c74356b41
yes, on web appVasyl Senko

1 Answers

1
votes

since you are talking about the webapps, you need to have your apps on the same webapp as "sub" apps. or you can bind you application gateway to the "native" webapp hostnames, that will also work as far as I know.

https://blog.bitscry.com/2017/10/11/hosting-multiple-sites-in-one-azure-webapp/