httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruud Dozijn <>
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>
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<HTML xmlns="" lang="en-US" xml:lang="en-US">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<P>ERROR</P><P>database lookup failure</P>
thanks, Ruud
View raw message