Use the Default Documents feature page to configure the list of default documents. If a user accesses your site or application without specifying a document name (for example, by requesting http://www.contoso.com/ instead of http://www.contoso.com/Default.htm), you can configure IIS to serve a default document such as Default.htm. IIS returns the first default document in the list that matches a file name in the directory.
Note | |
To improve performance, make sure that the first default document in the list exists on disk and that it is the first file name in the list. |
UI Element List
The following tables describe the UI elements that are available on the feature page and in the Actions pane.
Feature Page Elements
Element Name | Description |
---|---|
Name |
Displays the file name that is added as a default document. |
Entry Type |
Displays whether the item is local or inherited. Local items are read from the current configuration file, and inherited items are read from a parent configuration file. |
Actions Pane Elements
Element Name | Description | ||||
---|---|---|---|---|---|
Add |
Opens the Add Default Document dialog box in which you can add a file name to the default document list. |
||||
Remove |
Removes the item that is selected from the list on the feature page. |
||||
Move Up |
Moves a selected item up in the list.
|
||||
Move Down |
Moves a selected item down in the list.
|
||||
Disable |
Disables the Default Documents feature. When default documents are disabled, and a user accesses your site or application without specifying a document name, client browsers receive a 403—Forbidden error because the Web server cannot determine which file to serve, and the client cannot view the contents of the directory.
|
||||
Enable |
Enables the Default Documents feature. |
||||
Revert to Inherited |
Reverts the feature to inherit settings from the parent configuration. This deletes local configuration settings, including items from the list, for this feature. This action is not available at the server level. |