Bug 1196559

Summary: wrong path to document root in httpd.conf
Product: Red Hat Software Collections Reporter: Martin Frodl <mfrodl>
Component: httpdAssignee: Jan Kaluža <jkaluza>
Status: CLOSED ERRATA QA Contact: Ondřej Pták <optak>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: httpd24CC: jorton, kanderso, optak
Target Milestone: rc   
Target Release: 2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: httpd24-httpd-2.4.12-3.el6 httpd24-httpd-2.4.12-5.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-04 09:13:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Frodl 2015-02-26 09:48:22 UTC
Description of problem:

This is line 131 in default /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf:

  <Directory "/opt/rh/httpd24/root/var/html">

The path to document root in the <Directory> directive is incorrect, it should in fact be:

  <Directory "/opt/rh/httpd24/root/var/www/html">

One of the very unpleasant effects of the current default configuration is the unavailability of directory listing per mod_autoindex.


Version-Release number of selected component (if applicable):
httpd24-httpd-2.4.12-4.el7.x86_64

Comment 1 Jan Kaluža 2015-02-26 11:15:46 UTC
Good catch! I will try to fix it in rhscl-2.0.

Comment 4 Ondřej Pták 2015-05-04 18:53:18 UTC
httpd24-httpd-2.4.6-25.el7
==========================
:: [   PASS   ] :: Command 'curl -D header.log http://127.0.0.1/dir/ -o page' (Expected 0, got 0)
:: [   FAIL   ] :: File 'header.log' should contain '200 OK' 
:: [   FAIL   ] :: File 'header.log' should not contain '403' 
:: [   FAIL   ] :: File 'page' should contain 'Index of /dir' 
:: [   FAIL   ] :: File 'page' should contain 'test_file.txt'


httpd24-httpd-2.4.12-3.el6, httpd24-httpd-2.4.12-6.el7
======================================================
:: [   PASS   ] :: Command 'curl -D header.log http://127.0.0.1/dir/ -o page' (Expected 0, got 0)
:: [   PASS   ] :: File 'header.log' should contain '200 OK' 
:: [   PASS   ] :: File 'header.log' should not contain '403' 
:: [   PASS   ] :: File 'page' should contain 'Index of /dir' 
:: [   PASS   ] :: File 'page' should contain 'test_file.txt'

# grep /opt/rh/httpd24/root/var /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf|grep html
DocumentRoot "/opt/rh/httpd24/root/var/www/html"
<Directory "/opt/rh/httpd24/root/var/www/html">

Comment 6 errata-xmlrpc 2015-06-04 09:13:20 UTC
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://rhn.redhat.com/errata/RHBA-2015-1056.html