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
  • 5,383
  • 1
  • 23
  • 31

2 Answers2

1

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

udo
  • 8,001
  • 7
  • 38
  • 47
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
  • 5,383
  • 1
  • 23
  • 31