You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Fredrik Persson <fr...@bigfoot.com> on 2000/11/09 16:26:01 UTC

mod_rewrite/6826: Mod_proxy + mod_rewrite strips out QUERY_STRING

>Number:         6826
>Category:       mod_rewrite
>Synopsis:       Mod_proxy + mod_rewrite strips out QUERY_STRING
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Thu Nov 09 07:30:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     fredrik.persson@bigfoot.com
>Release:        1.3.12
>Organization:
apache
>Environment:
'uname -a' gives this:
Linux e-scserver1 2.2.14-6.mybuild.1smp #1 SMP Wed Aug 16 18:48:57 CEST 2000 i686 unknown

The kernel slightly modified by me. Mainly a bugfix in a NIC driver.
>Description:
My plan is to rewrite http://www.mysite.com/a/A123456789/c?d to 
http://A123456789.someothersite.com/c?d and to proxy that through a proxy on 
my localhost.

(A123456789 can actually be just an a (upper or lowercase) followed by 9 numbers.)

I tried to accomplish this by doing the following:

ProxyPass Off
RewriteRule ^/a/([a|A][0-9]{9})/(.*)$ http://$1.someothersite.com/$2?%{QUERY_STRING} [P]
ProxyRemote * http://localhost:8888/

However, it does not work too well. This is the rewrite log:

rewrite /a/A123456789/c -> http://A123456789.someothersite.com/c?d
split uri=http://A123456789.someothersite.com/c?d -> uri=http://A123456789.someothersite.com/c, args=d
forcing proxy-throughput with http://A123456789.someothersite.com/c
go-ahead with proxy request proxy:http://A123456789.someothersite.com/c [OK]

So, the QUERY_STRING is lost on the way. 	
>How-To-Repeat:
Obvious by the description.
>Fix:
I have no suggestions how to fix this.
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <ap...@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database 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!     ]