SLUG Mailing List Archives
Re: [SLUG] Can't seem to get DirectoryIndex to work in Apache 2.0
- To: slug@xxxxxxxxxxx
- Subject: Re: [SLUG] Can't seem to get DirectoryIndex to work in Apache 2.0
- From: Michael Lake <Mike.Lake@xxxxxxxxxx>
- Date: Thu, 16 Nov 2006 14:44:14 +1100
- User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)
Michael Lake wrote:
I can't get http://localhost/kid/ to serve out
http://localhost/kid/index in Apache 2.0
The error log shows when I access http://localhost/kid/
"Attempt to serve directory /home/kiddev/asf-kid/html/"
This will close this thread. The prob was indeed a problem of mod-perl2 + apache2.
This summarises the problem: http://www.wlug.org.nz/SargeApache2Notes
The fix is in amoung this long thread:
Basically for version 1.999 of mod_perl with apache2 the DirectoryIndex directive is
broken. Apparently perl gets the request for the directory before mod_dir gets a
chance to tack on index onto the end of it. The fix is that you have to load your own
directoty handler into mod_perl by placicing a small perl script in a directory and
loading it from the apache2.conf file.
It only took me a few weeks to figure all this out. Once I did that my system now
Computational Research Support Unit
Science Faculty, UTS
Ph: 9514 2238