简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM