J,

On 10/19/15 6:13 PM, J Lopez wrote:
>   is it possible to filter 404 application errors taking into account
> content-type beside http return code in jk configuration.
>   I need to difference between application is not deployed/executing (http
> 404 content-type html) and application running and returning a 404 json
> response (content-type json)

You want to handle this on the httpd-side or the Tomcat side?

> I have put mod-jk in debug mode and content-type is showed in logs. I
> have not seen in documentation if a fail_on_status can be combined with
> content-type returned.

One way to do this is to have a do-nothing ROOT application that has a
custom 404 error page that sets a different status: even something
that's very unusual. So the order of events would go like this:

GET /myapp/some/page - not found -> application returns 404 to httpd

GET /unknown/page - not found -> ROOT catches 404, returns 505 to httpd

Does that help?

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to