httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brad Nicholes" <>
Subject ErrorHeader directive...
Date Wed, 02 Jun 2004 21:49:47 GMT
   If an ErrorHeader is defined, shouldn't it only be included on
non-200 http responses (ie. only on 3xx,4xx,5xx responses as the
documentation states)?  With the following configuration I am seeing the
ErrorHeader as well as the Header on 200 responses and only the
ErrorHeader on non-200 responses.  I would expect to see one or the
other, not both.

LoadModule headers_module modules/

Header add MyHeader "%D %t"
ErrorHeader add ErrorHeader "%D %t"


    HTTP/1.1 200 OK\r\n
    Date: Wed, 02 Jun 2004 21:53:22 GMT\r\n
    Server: Apache/2.1.0-dev (Unix) mod_ssl/2.1.0-dev
    Content-Location: index.html.en\r\n
    Vary: negotiate,accept-language,accept-charset\r\n
    TCN: choice\r\n
    ErrorHeader: D=1961 t=1086213202633752\r\n
    Last-Modified: Fri, 04 May 2001 00:01:18 GMT\r\n
    ETag: "279bd4-5b0-40446f80;279beb-9a2-7e20c400"\r\n
    Accept-Ranges: bytes\r\n
    Content-Length: 1456\r\n
    MyHeader: D=1979 t=1086213202633752\r\n
    Keep-Alive: timeout=15, max=100\r\n
    Connection: Keep-Alive\r\n
    Content-Type: text/html; charset=ISO-8859-1\r\n
    Content-Language: en\r\n

    HTTP/1.1 404 Not Found\r\n
    Date: Wed, 02 Jun 2004 21:53:27 GMT\r\n
    Server: Apache/2.1.0-dev (Unix) mod_ssl/2.1.0-dev
    ErrorHeader: D=436 t=1086213207904344\r\n
    Content-Length: 311\r\n
    Keep-Alive: timeout=15, max=98\r\n
    Connection: Keep-Alive\r\n
    Content-Type: text/html; charset=iso-8859-1\r\n

Brad Nicholes
Senior Software Engineer
Novell, Inc., the leading provider of Net business solutions 

View raw message