Description of problem:
Remove /etc/httpd/conf.d/autoindex.conf to prevent override alias.conf in /etc/httpd/conf.modules.d/
In RHBZ#1648192, we tried to disable directory listing in icons/ directory.
However, autoindex.conf provided by httpd package overwrite the configuration of alias.conf in /etc/httpd/conf.modules.d.
Version-Release number of selected component (if applicable):
Current
How reproducible:
Always
Steps to Reproduce:
1. Deploy overcloud.
2. Login dashboard.
3. Access to http(s)://<dashboard URL>/icons/
Actual results:
The contents of icons directory are listed.
Expected results:
The contents of icons directory are not listed.
Additional info:
In puppet-apache, the module directory is automatically set based on httpd version.
https://github.com/puppetlabs/puppetlabs-apache/blob/74fa040be21689e32f156f73ed1a71f08a94eb49/spec/acceptance/version.rb#L20-L25
If we can change the spec file of httpd, we just remove following lines from httpd.spec.
~~~
573 # Split-out extra config shipped as default in conf.d:
574 for f in autoindex; do
575 mv docs/conf/extra/httpd-${f}.conf \
576 $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/${f}.conf
577 done
~~~
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2020:2718