5

I have an mvc app running on mydomain.com, and I have added a wcf web api to the web project.

I can access the rest service by going to mydomain.com/MyResource but I actually want MyResource to ONLY work if I go to api.myDomain.com/MyResource, and mydomain.com/MyResource to look for a controller called MyResourceController and throw an error if it didn't find it.

How can I do this?

Nightfirecat
  • 11,432
  • 6
  • 35
  • 51
nacho10f
  • 5,816
  • 6
  • 42
  • 73

1 Answers1

2

You'll have to create a new web site in IIS to solve this and create two projects in your solution.

Alexander Zeitler
  • 11,919
  • 11
  • 81
  • 124