apache2moddir

March 17, 2026 ยท View on GitHub

Back to resource list

Manages the Apache mod_dir configuration file.

Actions

ActionDescription
:createCreate the configuration.

Properties

NameTypeDefaultDescription
directory_indexArray['index.html', 'index.cgi', 'index.pl', 'index.php', 'index.xhtml', 'index.htm']Ordered list of files to serve as directory index.

Examples

apache2_mod_dir '' do
  directory_index %w(index.html index.php)
end