Elmar le Grange Elmar le Grange - 1 year ago 149
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)

Answer Source

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/...

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download