httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 18332] New: - ErrorDocument CGI using Location: MUST also use Status.
Date Tue, 25 Mar 2003 18:41:14 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18332>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18332

ErrorDocument CGI using Location: MUST also use Status.

           Summary: ErrorDocument CGI using Location: MUST also use Status.
           Product: Apache httpd-2.0
           Version: 2.0.44
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Documentation
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: owen_rees@hp.com


The custom error response documentation
<http://httpd.apache.org/docs-2.0/custom-error.html> says that a CGI error
document handler "should" include a Status header, but if the script uses a
Location: header it MUST also include a Status: 30x if the redirection is to
have any effect. For example, if you want to hand off 404 errors to a different
server this piece of (perl) script will work, but without the Status line,
nothing appears to happen, and no errors are logged - the server sends the
original 404 code to the client which then ignores the Location:.


$handoff = "http://my.other.server/cgi-bin/from-old-server";
print "Status: 301 Redirect permanent\n";
print "Location: $handoff?url=$ENV{REDIRECT_URL}\n";
print "\n";

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message