Received: (qmail 99833 invoked by uid 501); 9 Nov 2000 15:26:01 -0000 Message-Id: <20001109152601.99832.qmail@locus.apache.org> Date: 9 Nov 2000 15:26:01 -0000 From: Fredrik Persson Reply-To: fredrik.persson@bigfoot.com To: submit@bugz.apache.org Subject: Mod_proxy + mod_rewrite strips out QUERY_STRING X-Send-Pr-Version: 3.110 >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: Mon Nov 13 08:10:51 PST 2000 >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: From: "Fredrik 'Goethe' Persson" To: gnats-admin@bugz.apache.org, apache-bugdb@apache.org Cc: apbugs@apache.org Subject: Re: mod_rewrite/6826: Mod_proxy + mod_rewrite strips out QUERY_STRING Date: Mon, 13 Nov 2000 17:06:14 +0100 (MET) This bug does not exist. However, the report shows another problem. The http request that ProxyRemote *does not* leave out the QUERY_STRING. It is there. It just doesn't show up in the mod_rewrite log. This is rather confusing. Why not let me see the entire string that is beeing proxied? /Fredrik Persson >Unformatted: [In order for any reply to be added to the PR database, you need] [to include 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! ]