[rt-users] mason_handler.fcgi and ErrorDocument 404

Jesse Vincent jesse at bestpractical.com
Sun Mar 16 12:28:55 EDT 2008




On Sun, Mar 16, 2008 at 01:24:40PM +0100, holland holland wrote:
> Dear all,
> 
> Environment:
> 
> RT 3.6.4 & FastCGI
> 
> I'm wondering how to is currently possible to Redirect inexistent path
> to ErrorDocument 404.

More recent versions of RT have a 404 handler built in. What you're
looking for is a top-level HTML::Mason 'dhandler'

> 
> The problem only occur using FastCGI, mod_perl will follow Apache
> ErrorDocument directives.
> 
> You can try in your own environment (using FastCGI), something like
> http://[your domain]/blabla.html; you will end up with:
> 
> Could not find component for initial path '/blabla.html'
> ...
> ...
> ...
> ...
>  /opt/rt3/bin/mason_handler.fcgi:78
> 
> 
> 
> Google for "Could not find component for initial path", you will see
> many people running RT with this issue.
> 
> Someone proposed to hack the mason_handler.fcgi :
> 
> http://groovie.org/articles/2004/12/18/fast-cgi-with-html-mason
> 
> 
> This problem is not link to $WebURL , $WebBaseURL . $WebPath  not set
> correctly, the very same settings work in mod_perl.
> 
> 
> Maybe a Rewrite/.htaccess, pretty sure someone solved that in a neat way.
> 
> 
> Thank you in advance,
> James
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> 
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
> 
> 
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
> Buy a copy at http://rtbook.bestpractical.com
> 

-- 



More information about the rt-users mailing list