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...
Keywords:
Status: NEW
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact: Sasha Smolyak
URL:
Whiteboard:
Depends On:
Blocks:
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:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)


Links
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):
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

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.