httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "j k" <>
Subject [users@httpd] error doc handler ok for 403 but fails on 404
Date Sat, 09 Jun 2007 13:58:13 GMT
I followed this suggestion in the apache2 htpd.conf to use the default error
# The internationalized error documents require mod_alias, mod_include
# and mod_negotiation.  To activate them, uncomment the following 30 lines.

and it works fine for a 403 i get the expected response:
Access forbidden!

You don't have permission to access the requested directory. There is either
no index document or the directory is read-protected.
Error 403
Sat Jun 9 13:48:46 2007
But when I access a non-existant file

it brings back an odd message with an exra not found in it:
Not Found

The requested URL /nof.html was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an
ErrorDocument to handle the request.
Apache Server at myserver Port 80
and when I look in the logs it seems to be looking in the wrong place for
the error doc:
[Sat Jun 09 13:32:32 2007] [error] [client] File does not exist:

What might I have done wrong that has messed up what should be a plain
vanila default setup?


View raw message