WCF Web Api as a subdomain of an asp.net mvc 3 application?

I have an mvc application running on mydomain.comand I added a wcf web project to a web project.

I can access the rest service by going to mydomain.com/MyResource, but I really want it to MyResourcework ONLY if I go to api.myDomain.com/MyResourceand mydomain.com/MyResourceto find the controller with the name MyResourceControllerand throw an error if it does not find it.

How can i do this?

+5
source share
1 answer

You will need to create a new website in IIS to solve this problem and create two projects in your solution.

+2
source

All Articles