-1

Suppose I reload my web site 100 times by holding down Ctrl+R on my keyboard.

I notice once in a while Apache throws out a

Not Found

error message.

If I refresh again, everything works normal again.

This makes it difficult to even discuss the issue.
This makes it difficult to even diagnose the issue.
This makes it difficult to even ask questions about the issue.

How can one diagnose the issue?

  • 3
    404 errors are logged, or at least, can be logged. You can read the logs. – John WH Smith Aug 30 '14 at 9:43
  • @JohnWHSmith your comment is an answer to this question as it is written. – ctrl-alt-delor Aug 30 '14 at 14:52
  • This doesn't seem UNIX or Linux specific. →Server Fault? – Anko Aug 31 '14 at 19:23
2

I am writing my comment as an answer since it seems to be relevant to your case. Keyword: logs.

You can find logs for Apache2 at: /var/log/apache2. They may be in different locations according to your distribution, but this one is the most common.

Have a look at error and access logs to identify your requests. You can use grep to search your logs for 404 errors:

grep '404' /var/log/apache2 -R

Have a look here for more information about Apache error logs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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