Apache 1.3.37 not logging 404 errors

0

While attempting to diagnose another issue (which I asked about over here), I discovered that the apache 1.3.37 installation on a machine I inherited doesn't log 404 errors to error_log. I've scoured the config files for CustomLog and ErrorLog directives, but they're all just the standard 'set a path and (for CustomLog) combined format' type.

It does log other errors normally, such as 'Permission denied', but 404s are silently ignored.

What might be causing this and how can I get the 404s to appear (at least temporarily)?

Dave Sherohman

Posted 2012-01-02T13:55:15.737

Reputation: 5 143

1Have you checked your access.log for the 404? – Nifle – 2012-01-02T15:12:45.530

@Nifle: Yes, the request shows in access_log with a 404 status. – Dave Sherohman – 2012-01-02T15:30:08.323

Answers

0

It turned out that the context of the original issue was relevant here - the problem URL contained the sequence %2F (a URI-encoded forward slash). In an attempt to protect security-oblivious CGI programmers from their own ignorance, apache immediately rejects (as 404 Not found) any requested URL which contains that sequence at a very early stage in the request-handling process, which apparently bypasses any writes to error_log.

Dave Sherohman

Posted 2012-01-02T13:55:15.737

Reputation: 5 143

1

maybe the CustomLog directive is configured (also check .htaccess files) which excludes 404s.

udo

Posted 2012-01-02T13:55:15.737

Reputation: 7 661