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 38550] New: - Setting headers based on proxied data
Date Tue, 07 Feb 2006 12:13:43 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38550>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38550

           Summary: Setting headers based on proxied data
           Product: Apache httpd-2
           Version: 2.0-HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: apache@rikrose.net
                CC: apache@rikrose.net


mod_rewrite can set headers and cookies based on parts of the request. It would
be good if it could set headers and cookies based on part of the response as
well. In the situation where Apache is being used as a (reverse) proxy in front
of another web application server, this allows for greater flexibility in
setting cookies - a very large gain, if the web application acts as a cookie jar.

The easiest way to implement this is to do make the following changes:
 - Add a new flag to rules, indicating that the rule should only be run AFTER 
   content has been returned
 - Add a "before/after" flag to apply_rewrite_list.
 - In apply_rewrite_list, only run rules with the AFTER flag is the
   before/after flag is set. Do not run rules without the AFTER flag if the
   before/after flag is not set.
 - Add an output filter hook, essentially to run mod_rewrite again, as an
   output filter.
 - Add the new before/after flag to the calls to apply_rewrite_list. The
   original calls to mod_rewrite should all call with the before/after flag set
   to "before", and the call(s) in the output filter hooks should all call with
   the flag set to "after".
 - Edit lookup_header to search for output headers in preference to request
   headers. For correctness, a before/after flag should be inserted for this
   function, to enable looking for output headers only after the response has
   been generated.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message