1 # Note: this sets the global DirectoryIndex directive, it may be necessary to consider being able to modify the apache::vhost to declare DirectoryIndex statements in a vhost configuration
3 # - $indexes provides a string for the DirectoryIndex directive http://httpd.apache.org/docs/current/mod/mod_dir.html#directoryindex
4 class apache::mod::dir (
6 $indexes = ['index.html','index.html.var','index.cgi','index.pl','index.php','index.xhtml'],
8 validate_array($indexes)
9 ::apache::mod { 'dir': }
15 path => "${::apache::mod_dir}/dir.conf",
16 content => template('apache/mod/dir.conf.erb'),
17 require => Exec["mkdir ${::apache::mod_dir}"],
18 before => File[$::apache::mod_dir],
19 notify => Class['apache::service'],