errorCodex - Computer Questions & Solutions Forum


  errorCodex - Computer Questions & Solutions Forum » Blue Screen » Basic How-tos

Basic How-tos Help Us Noobs by Sharing Your Wisdom

Reply
 
Thread Tools
  #1  
Old 23 June 2010, 22:14
Miraenda's Avatar
Miraenda Miraenda is offline
Mime Stalker
 
Join Date: Nov 2009
Location: Coralville Iowa
Age: 37
Posts: 75
Miraenda has disabled reputation
Default DirectoryIndex (defaultDocument) in web.config file (Windows IIS 7 on Enkompass)

On Windows IIS, rather than using the .htaccess file like in Linux to define the DirectoryIndex, there is the option to use a web.config file in the web directory of an account.

The entry would be the following:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <handlers accessPolicy="Read, Execute, Script" />
            <defaultDocument>
                <files>
                    <clear />
                    <add value="index.aspx" />
                </files>
            </defaultDocument>
    </system.webServer>
</configuration>
This would make index.aspx the main index page for that site. If you were using php, since php pages aren't included in the files being looked for by the index page hierarchy, you can make an index.php file the defaultDocument using the above method.

Here is the order of the standard index hierarchy on Windows:
Code:
default.asp
default.htm
index.htm
index.html
index.asp
default.aspx
index.aspx
__________________
Miraenda
~ Ex uno disce omnes ~
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 15:09.


A vBSkinworks Design
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.