James Madison
James Madison

Reputation: 347

Run two Web APIs on same IIS site with same port

I currently have two C# Web APIs. (One is an older legacy version of OData, and I'm creating a new one to start using the newest version; but I need to support both for some time.)

When I launch the solution locally, I can access them both:
http://localhost:10013/odata3/Screen
http://localhost:10012/odata4/Screen

I want them to launch on the same port, how would I configure this?

Upvotes: 0

Views: 2069

Answers (1)

Oleksandr Kobylianskyi
Oleksandr Kobylianskyi

Reputation: 3380

I guess you can manage this with help of virtual directories. They are configured easily for full IIS. For IIS Express you will need to dive into C:\Users\#username#\Documents\IISExpress\config\applicationhost.config and configure sites element there.

Upvotes: 1

Related Questions