Now that I have to support a cpanel server again, I have to dabble in apache confs. Sometimes you want apache to show an index of the files in a directory for simplicity, for this we use Apache Module mod_autoindex. Which gives a bare basics index mode and a fancier index mode with better layout, links and presentation. Here’s hows to enable apache fancy indexes. Add it to your vhost config or to your .htaccess :

you can also supress some things you dont need such as icons, lastmodified dates etc. A more modified directory listing can be achieved via the following commands, feel free to remove the options you dont want.

Leave a comment

Leave a Reply or the kitten gets it!