DefaultDoc Metabase Property
Applies To: Windows Server 2003, Windows Server 2003 with SP1
The DefaultDoc contains one or more file names of default documents that will be returned to the client if no file name is included in the client's request. The default document will be returned if the EnableDefaultDoc flag of the DirBrowseFlags Metabase Property is set to true for the directory. This property can contain a list of default document file names separated by a comma and a space, for example Default.htm, Default.asp.
Important
If the EnableDefaultDoc flag is not set in the DirBrowseFlags Metabase Property property, the server will not search for a default document.
Attribute Name | Attribute Value |
---|---|
XML Data Type |
String |
WMI Data Type |
String |
ADSI Data Type |
String |
ABO Data Type |
String |
ABO Metabase Identifier |
MD_DEFAULT_LOAD_FILE |
Attributes |
INHERIT |
Default Value |
default.htm |
MetaFlagsEx |
CACHE_PROPERTY_MODIFIED |
User Type |
IIS_MD_UT_FILE |
ID |
6006 |
Configurable Locations
You can configure this property at the following locations in the IIS metabase.
Metabase Path | IIS Admin Object Type |
---|---|
/LM/W3SVC/n/ROOT /LM/W3SVC/n/ROOT/virtual_directory_name |
IIsWebVirtualDir |
/LM/W3SVC/n |
IIsWebServer |
/LM/W3SVC |
IIsWebService |
/LM/W3SVC/n/ROOT/physical_directory_name /LM/W3SVC/n/virtual_directory_name/physical_directory_name |
IIsWebDirectory |
Code Example
For general code examples, see Code Examples to Configure Metabase Properties.