Introduction
The following information explains the basics of customizing the Apache Directory Listing.
Please keep in mind that the configuration and coding involved in making this customization requires the training, and expertise of a systems administrator or developer with the skills, training, and expertise required to do so for you. cPanel support cannot provide assistance with implementing this kind of customization.
Procedure
You may enable or disable directory index listings in cPanel by clicking on the "Indexes" icon under the "Advanced" section. Contact your server administrator to enable this feature if it is missing.
Once you have enabled directory listings within the Indexes icon of cPanel, you can customize the CSS styles included with the following steps:
1. Edit the .htaccess file for your site and place the HeaderName directive inside like this:
HeaderName customIndexListing.html
2. Create a file in the same directory as the .htaccess file called customIndexListing.html and populate it with:
<html>
<head>
<title>Directory Title</title>
</head>
<body>
<h1>Directory Title</h1>
3. Then customize the HTML to your liking. To change the way that the directory listing looks, you will need to add your own custom CSS include within the <head> section of the above HTML.