SLUG Mailing List Archives
[SLUG] Can't seem to get DirectoryIndex to work in Apache 2.0
- To: slug@xxxxxxxxxxx
- Subject: [SLUG] Can't seem to get DirectoryIndex to work in Apache 2.0
- From: Michael Lake <Mike.Lake@xxxxxxxxxx>
- Date: Wed, 08 Nov 2006 14:08:22 +1100
- User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)
I can't get http://localhost/kid/ to serve out http://localhost/kid/index in Apache 2.0
I'm having some probs in getting a web application to work on my new Debian box. It
worked on my old laptop with Apache 1.3 but my new laptop has Apache 2.0 and many
things are quite different. I'm using Apache2 + mod-perl2 with Apache:compat for
compatability as the scripts are mod-perl 1.0 scripts.
I have set in the site config file /etc/apache2/sites-enabled/kiddev the lines:
Alias /kid /home/kiddev/asf-kid/html
and in that directory asf-kid/html is a mod_perl script which is called index - there
is no extension. It should be run when I use http://localhost/kid/
as /etc/apache2/apache2.conf contains just:
DirectoryIndex index.html index.cgi index.pl
In the browser if I try http://localhost/kid/ I get: "The URL /kid/ was not found"
but if I try http://localhost/kid/index explicitly the application loads fine.
The error log shows when I access http://localhost/kid/
"Attempt to serve directory /home/kiddev/asf-kid/html/"
which is fine as that is the directory pointed to by the alias.
Yes, I have restarted apache. Is there something different that I need to do?
Computational Research Support Unit
Science Faculty, UTS
Ph: 9514 2238