Directory Listings

Automatic directory index listings in WebSite are configured on the Dir Listing page of Server Admin. The Default settings for the page are shown in

[Graphic: Figure 26-5]

WebSite provides two types of directory indexing. Simple indexing will list all of the files in a directory as a bulleted list with filenames as links. Extended format is the default, and provides icons, file descriptions, modification times and dates, and header and footer files. These options are configurable as well.

If you wish, you can disable all directory indexes. If you want to restrict access to specific directory indexes, you use the Access Control page of Server Admin. The features of the Dir Listing page are described in the following sections.

The Features area of the page provides general setup options for directory listings.

The Special Documents area of the Dir Listing page identifies special files used to enhance extended directory listings.

The Ignore Patterns section of the Dir Listing page specifies full or partial filenames that you want to exclude from all directory listings. You can use the wildcard characters ? and * here for pattern matching. The default patterns are:

#* *.bak ~* *.ctr 

Notice that the # pattern hides all files that begin with the hash character, such as the default filenames for the header and footer files. You should hide any file types that you don't want to provide a link to, such as .exe executables. Keep in mind that the patterns you set apply to all directory listings available from your site.

To add a new pattern, type it into the edit field and press Add. To remove a pattern, select it from the list and press Delete.

The Special Icons section of the Dir Listing page specifies icon images to be used with file listings that don't have an associated content type. The other directory icons are mapped from the Mapping page according to file type or subtype. The default filenames shown exist in the /icons/ URL directory of WebSite. If you add a new icon file, you must put it there.