directoryBrowse Element [IIS Settings Schema]

Note

For more information about the directoryBrowse element, see the following topic on the Microsoft IIS.net Web site: Directory Browse <directoryBrowse>.

Configures whether directory browsing is enabled or disabled on the Web server, and specifies the information to include in a directory listing.

Syntax

Attributes and Elements

The following sections describe attributes, child elements, and parent elements for this section.

Attributes

Attribute

Description

enabled

Optional Boolean attribute.

Specifies whether directory browsing is enabled (true) or disabled (false) on the Web server.

The default value is false.

showFlags

Optional flags attribute.

The showFlags attribute can have one or more of the following possible values. If you specify more than one value, separate the values with a comma (,). The default values are Date, Time, Size, Extension.

ValueDescription
DateIncludes the last modified date for a file or directory in a directory listing.
ExtensionIncludes a file name extension for a file in a directory listing.
LongDateIncludes the last modified date in extended format for a file in a directory listing.
NoneSpecifies that only the file or directory names are returned in a directory listing.
SizeIncludes the file size for a file in a directory listing.
TimeIncludes the last modified time for a file or directory in a directory listing.

Child Elements

None.

Parent Elements

Element

Description

configuration

Specifies the root element in every configuration file that is used by IIS 7.

system.webServer

Specifies the root element in ApplicationHost.config that is the top-level section group in which this element is defined.

Remarks

For more information about the directoryBrowse element, see the following topic on the Microsoft IIS.net Web site: Directory Browse <directoryBrowse>.

Default Configuration

The following default <directoryBrowse> element is configured in the root ApplicationHost.config file in IIS 7 when the Directory Browsing role service is installed.

<directoryBrowse enabled="false" />

Element Information

Configuration locations

Machine.config

ApplicationHost.config

Root level Web.config

Application level Web.config

Virtual or physical directory level Web.config

Requirements

Microsoft Internet Information Services (IIS) version 7.0