Hi
Michael Lake wrote:
Problem: I can't get http://localhost/kid/ to serve out
http://localhost/kid/index in Apache 2.0
I found the problem and it is something that I would call a bug.
http://www.issociate.de/board/post/199936/DirectoryIndex_ignored_when_using_perl-handler.html
I have yet to implement this fix but hopefully will try it later today.
Details:
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:
DirectoryIndex index
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?
--
Michael Lake
Computational Research Support Unit
Science Faculty, UTS
Ph: 9514 2238
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html