The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache rewrites custom error message in HTTP header to a standard one

Discussion in 'EasyApache' started by FractalizeR, Mar 11, 2012.

  1. FractalizeR

    FractalizeR Member

    Joined:
    Mar 31, 2006
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    I'm sending errors from my PHP script using

    PHP:
    function http_error($message) {
        
    header("HTTP/1.1 500 ERROR $message!");
        die();
    }
    My local apache server on Windows correctly sends me HTTP header with a custom message like this:

    But my customer's server ignores any additional message and always sends header as

    Why can this happen? Is there any Apache directive to overwrite header custom messages? This server is controlled by CPanel/WHM of the latest version. But I didn't find any such an option in an EasyApache build settings in WHM.

    I'm using Apache 2.2 and PHP 5.3.10.
     
Loading...

Share This Page