apache2modautoindex

March 17, 2026 ยท View on GitHub

Back to resource list

Manages the Apache mod_autoindex configuration file.

Actions

ActionDescription
:createCreate the configuration.

Properties

NameTypeDefaultDescription
index_optionsArray['FancyIndexing', 'VersionSort', 'HTMLTable', ...]Array of directory indexing options. See https://httpd.apache.org/docs/2.4/mod/mod_autoindex.html#indexoptions
readme_nameString'README.html'File inserted at the end of the index listing. See https://httpd.apache.org/docs/2.4/mod/mod_autoindex.html#readmename
header_nameString'HEADER.html'File inserted at the top of the index listing. See https://httpd.apache.org/docs/2.4/mod/mod_autoindex.html#headername
index_ignoreArray['.??*', '*~', '*#', 'HEADER*', 'README*', 'RCS', 'CVS', '*,v', '*,t']Files to exclude from directory listings.
add_icon_by_typeArrayplatform-specificList of icon directives by type.
add_icon_by_encodingArray['(CMP,/icons/compressed.gif) x-compress x-gzip x-bzip2']Icon directives by encoding.
add_iconArrayplatform-specificIcon directives by file name or extension.
default_iconString'/icons/unknown.gif'Default icon for unrecognised file types.
add_descriptionArrayplatform-specificDescription strings for file types.

Examples

apache2_mod_autoindex ''