[rt-users] mason_handler.fcgi and ErrorDocument 404

holland holland lahollande at gmail.com
Sun Mar 16 17:45:48 EDT 2008


Hello Jesse,

"More recent versions of RT have a 404 handler built in"

Would you please point me where in the code this was implemented.

Thank you,
James

On Sun, Mar 16, 2008 at 5:28 PM, Jesse Vincent <jesse at bestpractical.com> wrote:
>
>
>
>  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