HTML::Mason handle nonexistent directories

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Hello all,

I am trying to handle requests to nonexistent directories with a
dhandler in HTML::Mason but I'm not having much luck.

I have set decline_dirs => 0 in my per

I have put mod_perl.c before mod_dir.c in the httpd.conf AddModule per

But still nothing. According to this page it should be possible
although it doesn't outline exactly how to accomplish it.

Somone also suggested using PerlTransHandler. Can anyone suggest the
best way to accomplish this? Hopefully something that has proven to be
successful in the past? Thanks!

Re: HTML::Mason handle nonexistent directories


Quoted text here. Click to load it
<Location /subdir>
  SetHandler perl-script
  PerlHandler HTML::Mason::ApacheHandler

In additional, you'll most likely need to add a line to your srm.conf
otherwise apache will send a text/plain header with any of the
nonexistent directories it serves. Add DefaultType text/html to your

Site Timeline