Setting subdomain on Localhost?

Posted by RobVious on Server Fault See other posts from Server Fault or by RobVious
Published on 2013-11-06T02:04:49Z Indexed on 2013/11/06 3:58 UTC
Read the original article Hit count: 479

Filed under:

I'm trying to test a multi-tenant MVC application (in VS2012) locally by setting a subdomain on localhost.

The application is currently running on localhost:5252. I want to access it via both that address, and contoso.localhost:5252.

In my hosts file I added the following:

127.0.0.1       contoso.localhost

I'm using IISExpress... when I navigate to contoso.localhost locally, I just get the IIS page.

What am I doing wrong?

© Server Fault or respective owner

Related posts about localhost