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
Good catch! I will try to fix it in rhscl-2.0.
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">
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