AdrianD
AdrianD

Reputation: 279

ASP.NET MVC and WebAPI on same domain

I have an MVC application hosted on www.example.com on a dedicated virtual server.
I now have a new WebAPI application that has it's own web.config, token authentication and can not really inherit from the MVC config.

Can I have the WebAPI running on the subdomain api.example.com? If not is there any other way to have them both working separatelly but using the same domain?

Any suggestion is highly appreciated.

Upvotes: 1

Views: 549

Answers (1)

Khaled
Khaled

Reputation: 96

In this case, using subdomains is the only good way to have the applications work separately on the same IIS. Just make sure to use different application pools for each one.

Upvotes: 2

Related Questions