Banner Ad

Wednesday, October 23, 2013

IIS Tips & Tricks # 2: Set Default page for a website in IIS

By Francis   Posted at   3:24 PM   IIS Tips and Tricks No comments
                         In few websites, if we type the website name, (like www.someurl.com) it will automatically loaded the page www.someurl.com/index.aspx . This is because of the setting of the “Default Document” feature of IIS. 

                           In this post we are going to discuss about this feature of IIS.

  1. Open IIS, by type the command “inetmgr” in Run window.
  2. Select “Default Document” and click.
  3. In the feature view, we can see some type of Document orderly kept.

IIS - Default Document
Default Document - Feature View

          The top most had the high priority and the last one had least priority.
As per the above figure, the document “Default.htm” had the high priority, the file “Default.aspx” had the lowest priority. Which means whenever the user types a url (like www.someurl.com) then IIS look any one of the file exist in the above order on that Virtual Directory. If it finds any one of the file, it will load that page.

         IIS also allow, add/remove the custom default document per website. For example if we are specify a page (say home.htm) as the default document which does not exist in the website then IIS will look into that website and Alert the user as shown below, which explicitly state that that each time when we type the url IIS will look in that order. 

IIS - Add Custom Default Document
Add Custom Default Document
            So as per the alert, it is advisable to move the default document at the top level, which will increase the performance in the sense IIS can avoid to go further down in the list.

Readers, do you have any other tip, please comment me.

Hope this helps!







About Francis

Francis, an Associate at Cognizant. Having 7+ Years of experience in Microsoft web technologies.

0 comments :

Please give your valuable comments to improve the contents

Connect with Us