Re: error doc handler ok for 403 but fails on 404

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/9/07, Joshua Slive <joshua@xxxxxxxx> wrote:
On 6/9/07, j k <jonnykent@xxxxxxxxx> wrote:

> 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 74.6.26.136] File does not exist:
> /var/www/localhost/htdocs/error.html
>
> What might I have done wrong that has messed up what should be a plain
> vanila default setup?

Somewhere in httpd.conf, or an Include'd .conf file or .htaccess file
you have something that looks like:
ErrorDocument 404 /error.html
This is certainly not in the default configs, so it must have been
something added locally.

Joshua.

How right you are.
I did
grep -r ErrorDocument *
from /etc/apache2/
and found a whole bunch of vestigal entries from copying over the vhosts files from the previous server. oops

Thanks Joshua :)
 
Jonny
[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux