Forum Moderators: phranque

Message Too Old, No Replies

Cannot Proxy the Query String

         

dimevang

3:39 pm on Jul 13, 2005 (gmt 0)

10+ Year Member



Hi guys. I have got the following problem please
I have 3 Domains
2 Of them reside on one server running Apache/1.3.22.
I do proxy requests from dom2 to dom1 as follows
RewriteEngine on
RewriteBase /
RewriteRule ^(.*)$ [dom2...] [P]
This works fine, including cgi's with query strings. (I also use cache with no problem at all)
The 3rd Domain (dom3) resides on an Apache/2.0.40.
I used the same way to poxy it to dom1. There is no problem, unless there is a query string. For some reason it cannot pass anything after the question mark (?). That is, if I request a page with the question mark and ONE character (or more) after it, it doesn't process a proxy request at all. Also, the cache is not working.
Any ideas please? Would it be wise to wipe of the 2.0.40 and install 1.3.22 version of apache? If that is the case, would that be easy (webmin is on the run).
-- The problem is probably that it cannot proxy on dynamic pages
Any help would be really much appreciated
Thanks for your time reading this.
Dimis

jdMorgan

6:51 pm on Jul 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



dimevang,

Welcome to WebmasterWorld!

This is an odd problem, and I can't offer any insight. You could try using [QSA,P] to force a pass-through on the query string, but this should only be necessary if you have a "?" in the substitution URL in the RewriteRule; That is, it should only be necessary to use [QSA] if you are adding to the existing query string within the RewriteRule.

Jim

jd01

8:56 pm on Jul 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That is, it should only be necessary to use [QSA] if you are adding to the existing query string within the RewriteRule.

This is one of the Apache oddities I have run into... On *one* (not all) of my domains, I cannot get the second variable in a query string to be passed, unless I use [QSA] even though my original URL is .html IOW there is no query string to be appended to, the only query string is the new one that I am initializing in the rewrite. [Apache v1.3.33]

On other domains there is no issue and I can pass 2 or more variables without the use of the [QSA] flag... Why? Don't Know. Go figgure. No Clue.

Justin

dimevang

8:06 am on Jul 14, 2005 (gmt 0)

10+ Year Member



Thanks a lot guys
- [QSA,P] is not working - I do not add any query string anyway. The problem is that apache on my server does not proxy at all when there is a query sring on the request.
I will probably remove it and install the 1.3.22 that works fine on my other domains. This hopefully will solve the no-cache problem as well.
Thanks again
Dimis