0
votes

I have project with one Web Role (ASP.NET MVC). Not i want to divide it into 2 WebRoles: Web and WebAPI. I want host it in same cloud service, but i don't want to assign 8080 port to my WebAPI WebRole. I want to use mysite.com and api.mysite.com in one cloud service project and deploy it as single unit. It is possible to solve this only by hostHeader in Binding ?

1

1 Answers

1
votes

You cannot have multiple WebRoles binding to the same endpoint (port). But you can have multiple Web Sites (Web Applications) in the same Web Role on Azure. Thus, having multiple web project all on the same port 80 with different host headers.

Here are some startup guidances: