Page 1 of 1

DirectoryIndex Problem

PostPosted: 23. November 2004 12:29
by philroche
Hi, I am having problem acessing files in a subdirectory of the users ,/~X/Y ,
All I get is a directory listing when I try both /~X/Y and /~X/Y/ but for /~X and /~X/ I get served index.php. I have not changed anything in httpd.conf at all that would affect this. The DirectoryIndex is as follows :
Code: Select all
DirectoryIndex index.php index.html index.html.var index.php3 index.php4


The User Directory listing is as follows :
Code: Select all
<Directory /home/*/public_html>
    AllowOverride All
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    <Limit GET POST OPTIONS PROPFIND>
        Order allow,deny
        Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS PROPFIND>
        Order deny,allow
        Deny from all
    </LimitExcept>
</Directory>


Does anyone know why this might be happening?. I thought I knew Apache relatively well but this has me stumped.

Fixed

PostPosted: 25. November 2004 21:09
by philroche
I managed to resolve the issue

Code: Select all
<Directory /home/*/public_html/*>
    DirectoryIndex index.php index.html
</Directory>


Shoudl this be nescessary though?