Set file description in apache2

felixphew asked:

In the default file listing page (mod_autoindex) on apache2 (OS X), there is a column marked “description”. Does anyone know of how you actually set what appears here? All of mine are blank, as are most of the ones on other servers that I see.

Sorry if this is really obvious but I can’t find the answer anywhere else, including apache’s docs

My answer:


I’m not sure you read Apache’s docs on mod_autoindex closely enough, as it does reveal two ways to set descriptions. Probably not your fault; they are kind of buried…

First, you can use AddDescription to set individual descriptions for files or groups of files by partial match.

Second, you can set IndexOptions +ScanHTMLTitles and Apache will use the <title> of each HTML document as its Description. This is CPU and disk intensive though.

Descriptions given by AddDescription take precedence.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.