Bug 1729423 - Remove /etc/httpd/conf.d/autoindex.conf to prevent override alias.conf in /etc/httpd/conf.modules.d/
Summary: Remove /etc/httpd/conf.d/autoindex.conf to prevent override alias.conf in /et...
Status: NEW
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact: Sasha Smolyak
Depends On:
TreeView+ depends on / blocked
Reported: 2019-07-12 08:49 UTC by Keigo Noha
Modified: 2020-02-09 04:54 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:
Target Upstream Version:

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 4481841 None None None 2019-10-23 05:59:09 UTC

Description Keigo Noha 2019-07-12 08:49:47 UTC
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):

How reproducible:

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.


Comment 1 Keigo Noha 2019-07-12 08:51:39 UTC
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

Comment 5 Keigo Noha 2019-09-02 00:23:14 UTC
Hi Team,

Do you have any updates on this?

Best Regards,
Keigo Noha

Note You need to log in before you can comment on or make changes to this bug.