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


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.