When it is enabled and privileged, the mod_dir module in Apache2 automatically sends an HTML page with the contents of the directory when the directory does not contain the index.html file. I am looking for an easy way to make this directory contents readable; It is preferable to have the contents of a directory formatted as a JSON array containing subdirs / subfiles instead of an HTML page.
What would be an easy way to accomplish this, which works on most standard Apache2.2 configurations? (without php scripts)
source share