Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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

    Mar 31, 2006
    Likes Received:
    Trophy Points:
    I'm sending errors from my PHP script using

    function http_error($message) {
    header("HTTP/1.1 500 ERROR $message!");
    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.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice