I'm trying to do something similar to this post asp.net setting up subdomain on localhost
I have the following added to my hosts file
127.0.0.1 localhost
::1 localhost
127.0.0.1 test1.localhost
127.0.0.1 test2.localhost
I have unchecked everyting under LAN connections as mentioned in the post. HOwever, from within VS 2010, running the application and going to localhost:7217 works. But going to test1.localhost still falls over with an error 'IE could not find test1.localhost'
The application is based on MVC3, so not sure if I should be adding routing related changes to global.ascx. Is this required? What else should I be doing for this to work?
Thank you
127.0.0.1 test1.mytestwebsite.co.uk