I have a designed a page in asp.net. I want to setup in IIS that page so that if i enter localhost it will take me to that page. Kindly help me how to do it.



6 Years
Discussion Span
Last Post by JorgeM

typing localhost in the browser has nothing to do with IIS. Localhost is a "generic" hostname that you can use to point back to your local computer. In your HOSTS file (%systemroot%\sytem32\drivers\etc) you can modify it, add a record called localhost and map it to the IP of Save the file with no file extension. What this will do is any time you try access the hostname "localhost", it will resolve to the same computer you are on.

If you are running IIS on that computer and you only have one website, it should work accept the connection and assign it to your website. However, if you have multiple websites within IIS, you will have to set up hostheaders on each website or each website would need its own IP.

there are alot of tutorials and resources on MIcrosofts official site for iis--> iis.net

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.