Overview:

When a visitor accesses a directory rather than a page on your web site, the browser typically displays the directory’s index page. If no index page exists, the browser displays a list of the files in that directory. Use the Indexes interface to define how the server displays a specific directory’s index to a visitor, or to disable the index display for a directory.

Configure directory settings

To configure your directory settings, perform the following steps:

  1. Click Settings and then select one of the following locations in which to begin navigation:

    • Home — Begin navigation in the home directory for the domain.

    • Web Root — Begin navigation in the document root for the account’s primary domain.

    • Document Root for — Select the domain that corresponds to the document root in which you wish to begin navigation.

  2. To configure the interface to always open your selection from Step 1, select the Always open this directory in the future checkbox.

  3. Click Save Changes.

Manage index settings

To manage a directory’s index settings, perform the following steps:

  1. Navigate to the desired folder with the following:

    • To navigate a directory, click the folder icon () or the directory’s name.

    • To navigate up one level of the directory tree, click Up One Level at the top of the list of directory contents.

    • To to navigate the home directory, click Home above the list of directories.

    • To view and select subdirectories, click the parent directory’s name. Then, click the desired subdirectory name.

  2. To configure the security settings for a directory or subdirectory, click Edit under the Actions column. A new interface will appear.

  3. Select one of the following options:

    • Inherit — The directory inherits the parent directory’s index setting. If the parent directory does not possess index settings, the directory uses the system default settings.

    • No Indexing — The server does not list the contents of the directory. Browsers display a message that states that the contents are forbidden.

    • Show Filename Only — The server lists the directory’s contents as filenames only.

    • Show Filename and Description — The server lists file names and additional information, such as file size and file type.

  4. Click Save. The new index setting will appear in the Indexes interface under the Index Type column.

Was this answer helpful?

Related Articles

Apache Handlers
Overview: Apache handlers control how your site’s Apache web server software manages certain...
API Shell for cPanel
Overview: This interface allows you to run cPanel API functions interactively. Warning:...
Cron Jobs
Overview: Cron jobs are scheduled tasks that the system runs at predefined times or intervals....
Error Pages
Overview: Error pages inform visitors about problems when they attempt to access your site. Each...
Terminal for cPanel
Overview: Warning: Commands that you enter in this interface can render your server...