Could be a FilesMatch vs LocationMatch issue or the location of your 
PerlHandler line.  Here is what I have and it works great.

DocumentRoot /home/greenaspen_com/www
PerlSetVar MasonCompRoot /home/greenaspen_com/www
PerlSetVar MasonDataDir /home/greenaspen_com/www_mas
<LocationMatch "(\.html)$">
  SetHandler perl-script
  PerlHandler HTML::Mason::ApacheHandler
</LocationMatch>
<LocationMatch "(\.mas|dhandler|autohandler)$">
  SetHandler perl-script
  PerlInitHandler Apache::Constants::NOT_FOUND
</LocationMatch>

John Halladay


Jackie Hamilton wrote:
> I'm setting up a new Mason site on a shared server; the Mason configuration 
> stuff is all in the VirtualHost directive for each site. I've used the config 
> below. The site parses .html files properly for Mason tags, however it 
> completely ignores dhandlers. So if I try calling 
> www.mysite.com/nonexistent_file, I'm getting a "404 not found" rather than 
> the contents of the dhandler (which is in the component root). I can't figure 
> it out.  What am I doing wrong?
> 
> Here's the relevant part of the VirtualHost config:
> 
> DocumentRoot /home/macs/public_html
> PerlSetVar MasonCompRoot /home/macs/public_html
> PerlSetVar MasonDataDir /usr/local/modperl/mason-data/macs
> PerlHandler HTML::Mason::ApacheHandler
> 
>   <FilesMatch "\.html$">
>      SetHandler perl-script
>      PerlSetVar Filter On
>      PerlHandler HTML::Mason::ApacheHandler
>   </FilesMatch>
> 
> Thanks,
> 
> -- Jackie Hamilton 
> [EMAIL PROTECTED]
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Mason-users mailing list
> Mason-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mason-users

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to