httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Ionescu <bobsie...@googlemail.com>
Subject Re: [users@httpd] Attempt to serve directory:
Date Fri, 24 Jul 2009 13:47:00 GMT
2009/7/17 MK <halfcountplus@intergate.com>:
> <Directory /var/www/html/codebank>
>    SetHandler perl-script
>    PerlHandler HTML::Mason::ApacheHandler
>    AddType text/html mhtml
>    AddType text/html comp
>    AddHandler perl-script mhtml comp
> </Directory>
>
> If I load *localhost/codebank/index.html*, there is no problem.
> However, if I try to load *localhost/codebank/*, I get a 404 error.
[...]
> In error.log I get "Attempt to serve directory: /var/www/html/codebank"
> when the 404 occurs.  How can I get apache to deal properly with this
> directory without having to include the fullpath of the index?

In contrast to trunk (becoming 2.3/2.4) DirectoryIndex won't work if
you force a handler (for everything) via SetHandler. You can
work-around this issue by placing the Sethandler directive into a
<Files *> container (i.e. restrict it to files). But anyway; since
you're using AddHanler, too, I'm wondering if you really need
SetHandler here.

Bob

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message