By default, your web server will read any file called ‘index’ as the main page for a given directory. If an index page is not present, however, it will either display the contents of the directory according to your specifications or simply display an error. Using cPanel, you can manage how a directory index appears.
To access cPanel’s Index Manager, login to cPanel and follow these instructions:
- Locate the “Advanced” section and click on “Index Manager’
- Select the base directory you want to manage
- On the next screen, select the subdirectory you want to manage or choose the current one.
- Choose from four options:
- Default system setting – uses whatever your server is set to use globally
- No Indexing – displays a forbidden error instead of showing an index at all
- Standard Indexing – Only shows filenames
- Fancy Indexing – Shows filenames and descriptions
- Click “Save” to confirm your changes
You can go back and change your indexing settings at any time. If you are concerned about people viewing certain files for security reasons, you should either move them or make sure you choose “No Indexing”. You should also remember that you only need to configure indexing for directories that do not have “index.*” files. If you want some functionality other than the four options provided, you should consider either creating an index.* file or manually changing settings within the .htaccess file.