>Number: 3824 >Category: mod_proxy >Synopsis: ErrorDocument do not override Status line set by mod_proxy >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Wed Feb 3 10:10:00 PST 1999 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3.4 >Environment: AIX 4.3.2, egcs >Description: Document is returned with status 500 regardless ErrorDocument 500 http://example.com/x.html directive in configuration file if some document is blocked.
If I try to supply my own document for case when some site is blocked, user document with link to my document instead of directly moved to my document. >How-To-Repeat: put into config: ErrorDocument 500 http://example.com/x.html ProxyBlock block.org Try to get document from block.org site. You will get: 500 Proxy Error Location: http://example.com/x.html <Document with link to http://example.com> Instead of 302 Found Location: http://example.com/x.html <Document with link to http://example.com/x.html> >Fix: remove line with status_line = "500 Proxy Error" from proxy_util.c THere might be reason to remove lines with status_line = "200 Ok" from proxy*.c Or change part of apache core that failed to ensure corect status line will be put into answer to client. >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include <[EMAIL PROTECTED]> in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ] [If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request ] [from a developer. ] [Reply only with text; DO NOT SEND ATTACHMENTS! ]