Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Users of my website are getting html error 502/503. But Apache is not logging these. In my Apache access_log I cannot see any request for which returned html error code was 50x.

How can I count number of 50x errors my users are getting in a day ?

My configuration is as follows I have 1 Ha-proxy and 2 severs running Apache.

share|improve this question

A 502 or 503 would indicate the error is coming from HAProxy, so it's not involving the Apache servers at all. You'll need to have those logged by HAProxy itself.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.