user3336974
user3336974

Reputation: 31

Two Azure App Services on single domain

I have two web apps: 1. UI Project 2. API Project

They should map in next way: UI Project -> mydomain.com, API Project -> mydomain.com/api

Do you have any ideas as to how I can do it?

I don't want to have a virtual application or a virtual directory, because they can't be configured and scaled separately. I expected that the load on the API Project will be more than on the UI project. As a result I would like to configure the price plan and the scalability in a different way for each project.

Thanks in advance for your help.

Upvotes: 2

Views: 543

Answers (1)

Brando Zhang
Brando Zhang

Reputation: 28422

According to your requirement, I suggest you could try use url redirect in your UI web app's web config file.

By using this way, if customer access the mydomain.com/api, it will auto redirect to your azure web api app's url.

Notice: after redirecting, the url show in the browser will be changed.

More details about how to set it , you could refer to this article.

Another way, you could consider using azure application gateway, it now support web app as its backend pool.

More details, you could refer to this article.

About how to use web app as its backend pool, refer to this article.

Upvotes: 1

Related Questions