Results 1 to 4 of 4
  1. #1
    manik's Avatar
    manik is online now Om Shanti!
    Join Date
    Apr 2008
    Location
    Boston, USA
    Posts
    13,176
    Thanks
    744
    Thanked 701 Times in 550 Posts
    Blog Entries
    4
    Feedback Score
    4 (100%)

    Default How to Set Default Document with Web.config file with IIS 7

    How to Set Default Document with Web.config file with IIS 7


    A default document is the file that a web server displays when you browse to a folder without specifying a file name.

    With IIS 7 you can set the default document on your web.config file easily. Here is a demonstration how you can set Test.aspx as your default document.

    <configuration>
    <system.webServer>
    <defaultDocument>
    <files>
    <add value="Test.aspx" />
    </files>
    </defaultDocument>
    </system.webServer>
    </configuration>

    When IIS sees this new default document entry, it merges with parent or global list of default documents.

    To remove an individual default document from the list.
    <files>
    <remove value="Test.aspx" />
    </files>

    To remove a default document entry from the inherited or parent list of default documents, do something like this:


    <files>
    <clear/>
    <add value="Test.aspx" />
    </files>
    Free Classified Ads & BUSINESS/PROFESSIONAL SOCIAL NETWORK


  2. #2
    hbtech is offline Sophomore
    Join Date
    Mar 2011
    Location
    india
    Posts
    50
    Thanks
    1
    Thanked 1 Time in 1 Post
    Feedback Score
    0

    Default

    woow very nice post, great tutorial, i like your way step by step, its little difficult but nice post thanx.

  3. #3
    somkant is offline Senior
    Join Date
    Aug 2011
    Posts
    671
    Thanks
    0
    Thanked 7 Times in 7 Posts
    Feedback Score
    0

  4. #4
    jakson0100 is offline Junior
    Join Date
    Jul 2011
    Posts
    239
    Thanks
    0
    Thanked 4 Times in 4 Posts
    Feedback Score
    0

    Default

    If you disable default documents but have enabled directory browsing, IIS returns a directory listing when a request for the root directory arrives from a browser.
    Virtual dedicated server √ Dedicated hardware √ Ms Hyper-v Technology

Similar Threads

  1. Replies: 0
    Last Post: 02-17-2010, 12:53 AM
  2. How to find a pdf file is normal file or shared review file
    By sunshine in forum JavaScript & AJAX
    Replies: 0
    Last Post: 01-04-2010, 11:21 AM
  3. Query on XML document
    By amber.long83 in forum Web Development - Programming & Coding
    Replies: 1
    Last Post: 06-23-2009, 11:59 AM
  4. Universal Document Converter
    By Amit.Verma in forum All Other Search Engines
    Replies: 4
    Last Post: 08-22-2008, 07:56 PM
  5. Document Storage
    By Amit.Verma in forum All Other Search Engines
    Replies: 4
    Last Post: 08-19-2008, 06:19 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Partners: BOSTON WEB DEVELOPER, LLC   |   WEBCOSMO CLASSIFIEDS