tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mladen Turk <mt...@apache.org>
Subject Re: mod_jk / Tomcat 6 and ErrorDocument
Date Mon, 22 Sep 2008 15:04:54 GMT
Henri Gomez wrote:
> Hi to all,
> 
> Did some of you experienced problems with mod_jk 1.2.26 (and maybe
> earlier release) and Apache 2.x ErrorDocument directive.
> 
> In one of my configuration I set :
> 
>     ErrorDocument 404 /gen_error404.html
>     ErrorDocument 500 /gen_error500.html
>     ErrorDocument 503 /gen_error503.html
> 
>     JkMount /sitea/* wsitea
>     JkMount /siteb/* wsitea
>     JkOptions +ForwardDirectories
> 
> 
> When I look for a unexisting resource under Apache 2 control, I got
> the content of gen_error404.html.
> Also if the tomcat is unavailable I got back gen_error503.html page.
> 
> But if I'm looking for an unexisting resource under Tomcat control, I
> get back the standard Tomcat 404 error instead of the
> gen_error404.html.
> 
> Did there is some 'special settings' or configuration to be done on Apache/jk ?
>

Try creating custom 404 page for tomcat with zero length body.
In that case Apache httpd error page will be shown


Regards
-- 
^(TM)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message