tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shekar Tippur" <>
Subject httpd.conf - Capturing 500 errors in the log.
Date Fri, 26 Jan 2007 20:29:27 GMT

Is there any way to configure httpd.conf file to capture only 500

I have put in the following entries in httpd.conf file:

LogFormat "%500t %500U %500q %500h %500u \"%500r\" %500s
\"%500{Cookie}i\" \"%500{Referer}i\" \"%500{User-agent}i\""
CustomLog logs/apache/access_log-500 logging500errors

but this seem to insert dummy entries for all other request outputs

(e.g - - - - - "-" - "-" "-" "-")

I tried this and it did not work:

LogFormat "%t %U %q %h %u \"%r\" %s \"%{Cookie}i\" \"%{Referer}i\"
\"%{User-agent}i\"" logging500errors

SetEnvIf status 500 500env
CustomLog logs/apache/access_log_pod-500 logging500errors env=500env

What is the SetEnvIf directive to capture the return status?

- Shekar

I want to know if there is a better way to get this done.

Thanks in advance for all your help.

- Shekar

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message