I was hardening my webserver - CentOS 7.5.1804, httpd 2.4.6_80 - and followed the myriad of examples that suggested disabling mod_autoindex. (see Commenting out LoadModule autoindex_module modules/mod_autoindex.so
)
httpd doesn't restart because /etc/httpd/conf.d/autoindex.conf
has entries that httpd no longer understands. Fine, removed autoindex.conf
.
Then I updated the server, and found that autoindex.conf
had been replaced in the update, again preventing the httpd from starting.
Does anyone know why autoindex.conf
is
- independant of
httpd.conf
- not wrapped in
<IfModule mod_autoindex></IfModule>
markers?
Subsequently, does anyone know how to turn mod_autoindex
off and keep it off without threatening to prevent httpd from starting?