I need to suggest a directory directory of the root directory of my site, so I created a .htaccess file containing
options + indexes
It works for subdirectories, but for the main directory I get a test page for the Apache HTTP server on the Red Hat Enterprise Linux page .
I have two sites that are identical, except for the installed version of PHP . On one site ( PHP 5.2.1 ) this method works fine. On the other hand ( PHP 5.2.9 ), this is not so.
As far as I know, the Apache installations are identical, and I confirmed that the httpd.conf files are identical .
On both sites, htaccess works for subdirectories. My problem is with the main directory of the site.
My goal is to create simple directory listing sites similar to znvy.com .
Is there anything in the updated version of PHP that prohibits the list of root directory ? If so, a workaround ?
[update] I looked at the page using rex swain http viewer and the server of the problem site returns 403 status with the default Apache page.