httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruud Dozijn <rdoz...@hotmail.com>
Subject [users@httpd] apache changes status code from 500 to 200
Date Wed, 11 Jul 2012 09:05:37 GMT

RE: [users@httpd] 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.org/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
 		 	   		  
Mime
View raw message