On 07/24/2009 09:47:00 AM, Bob Ionescu wrote:
> 2009/7/17 MK <halfcountp...@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>

> 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.

Thanks for that; using <Files> did not work but <LocationMatch "/
codebank/.*\.(m?html|comp)$"> does, in which case I can just use the 
SetHandler line.

For some reason I (must have been thinking that) AddHandler dictated 
the filetypes for the handler in SetHandler, since I did not see the 
redundancy there and actually did not intend that for all files.





---------------------------------------------------------------------
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-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to