Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

When I open a url with a non-existent php file on my site, for example :

it logs a 404 error into the apache error log, but it doesn't show the requested url, it just shows :

File does not exist: /path/to/public_html/404.shtml

If I request a url with a non-existent html, jpg, etc, the log entry displays the file.

I looked in httpd.conf and there are no CustomLog entries.

share|improve this question
Do you have any rewrite rules or ErrorDocument directives? – Ladadadada Jan 31 '13 at 9:39
Hi, the only rewrites i have are for forwarding no-doamin urls to www.domain, nothing that deals specifically with php files. and no ErrorDocument directives – Sherif Buzz Jan 31 '13 at 20:42

Your Answer


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

Browse other questions tagged or ask your own question.