Click here to get back home

HTML::Mason handle nonexistent directories

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
HTML::Mason handle nonexistent directories bennymack 06-14-2005
Get Chitika Premium
Posted by bennymack on June 14, 2005, 12:45 pm
Please log in for more thread options


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 handler.pl per
http://www.masonhq.com/docs/manual/Admin.html#allowing_directory_requests

I have put mod_perl.c before mod_dir.c in the httpd.conf AddModule per
http://www.masonhq.com/?HandlingDirectoriesWithDhandlers

But still nothing. According to this page
http://www.masonbook.com/book/chapter-3.mhtml 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!



Posted by bennymack on June 14, 2005, 7:27 pm
Please log in for more thread options


Solution:

>From link #3 above
<Location /subdir>
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler
</Location>

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



Similar ThreadsPosted
HTML::Mason March 7, 2005, 7:45 am
Trying to get HTML::Mason running, stuff out-of-date? October 6, 2004, 5:28 pm
HTML::Mason, mod_perl on Win32 w/ActiveState Perl December 21, 2004, 11:46 pm
Installation error for module in CentOS 5.0 for HTML::Mason June 18, 2007, 10:03 pm
trying to use HTML::Mason on apache2 but scripts come up as plain text in the browser October 23, 2006, 1:50 am
Perl Module to search in a directory and sub-directories December 25, 2006, 2:05 pm
Mason install problems. July 26, 2004, 2:54 pm
Mason sharing variables, rookie alert :) July 13, 2006, 10:51 am
Mason Mod_Perl2.0 Apache 2.0 Fedora Core 1 AMD64 - HOW I DID IT! - February 23, 2005, 3:19 pm
Tie::Handle::CSV Help... July 23, 2006, 2:00 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap