You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2002/07/18 20:59:43 UTC

DO NOT REPLY [Bug 10961] New: - Redirect inside of does not pass environment back to the browser

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=10961>.
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=10961

Redirect inside of <Directory XYZ> does not pass environment back to the browser

           Summary: Redirect inside of <Directory XYZ> does not pass
                    environment back to the browser
           Product: Apache httpd-1.3
           Version: 1.3.26
          Platform: Sun
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: sean.m.alderman@grc.nasa.gov


The following configuration example causes loss of the query string...

Servername xxx.xxx.com
#ScriptAlias /cgi-bin/ /usr/local/apache/cgi-bin
<Directory />
Redirect /cgi-bin/ http://yyy.xxx.com/cgi-bin/

...

</Directory>

-----
With the above config -
Browser is pointed to http://xxx.xxx.com/cgi-bin/some.cgi?q=abc
Browser is sent a 302 with new location at http://yyy.xxx.com/cgi-bin/some.cgi
-----

Using the redirect outside of the <Directory XYZ> block functions properly

ServerName xxx.xxx.com
#ScriptAlias /cgi-bin/ /usr/local/apache/cgi-bin/
Redirect /cgi-bin/ http://yyy.xxx.com/cgi-bin/
<Directory />
...
</Directory>

----
Browser points to http://xxx.xxx.com/cgi-bin/some.cgi?q=abc
Browser is sent a 302 with location of http://yyy.xxx.com/cgi-bin/some.cgi?q=abc
----

I have tested this repeatedly on RedHat 7.3 and Solaris 8.  Verifying both
visually with the browser and a network sniff.

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