apache changes status code from 500 to 200

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

 



RE: apache adds extra HTML to an error page‏

Using httpd on redhat 5


Problem: on an non 200 http status code, apache garbles output of web server by adding a default error document and changing the error code to 200.

When supplying a custom error document or none, the http status is changed to 200.


Thanks to previous help I am a step further in the migration process. The only bottle neck is this error code.
Has anyone a clue what this might be. Is there a solution to this anyway, or it a bug?



In httpd.conf I put


ErrorDocument 500 " "


which results in (first line is output of script that performs the request, the rest is the http response):


#<Net::HTTPOK 200 OK readbody=true>
<!DOCTYPE HTML
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.or g/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
<title>agent</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<BODY>
<P>ERROR</P><P>database lookup failure</P>
</BODY>
</HTML> 


thanks, Ruud


[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