Elmar le Grange Elmar le Grange - 2 months ago 41
C# Question

IIS binding prefixes localhost

Is there a way to set up a binding in iis in the format of:





I set the websites up to use different ports but there is a resource that is needed which is hosted on port 80 on the same server. The other websites are now looking for this resource, assuming it runs on the same port as them (example :8001, :8002, :8003)


In your IIS Manager, go to Edit Bindings... of your website and add a site binding with website1.localhost as host name on the port 80. Next, edit the file c:\Windows\System32\drivers\etc\hosts to append an entry:       website1.localhost

Repeat the same above steps with other websites and you can naviate to http://website1.localhost/, http://website2.localhost/...