Apache listing: List directories before files

Add the following to .htaccess:

IndexOptions IgnoreCase FancyIndexing FoldersFirst NameWidth=* DescriptionWidth=* SuppressHTMLPreamble

Then in the .conf file inside /etc/apache2/sites.., you should have the following under :

AllowOverride All

For more customization, read here.


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.