Philip Mak wrote:
> 
> I have a front-end lightweight Apache proxying to a backend mod_perl
> Apache. I am experiencing problems with query strings.
> 
> In my lightweight httpd.conf, I have:
> 
> RewriteRule ^/(.*)\.asp http://66.33.85.239/$1.asp [p]
> 
> If I go to http://www.buildreferrals.com/rotatorstats.asp, it gets proxy'd
> correctly.
> 
> But if I go to http://www.buildreferrals.com/rotatorstats.asp?login=pmak0
> (that's the same URL, but with a query string added), then I get a "404
> Not Found" error. The error log says:
> 
> [Sun Jul 29 08:10:11 2001] [error] [client 206.173.59.73] File does not
> exist: proxy:http://66.33.85.239/rotatorstats.asp?login=pmak0
> 

Having never used RewriteRules before, it seems that maybe 
http://66.33.85.239/rotatorstats.asp?login=pmak0 didn't match
your rule "RewriteRule ^/(.*)\.asp http://66.33.85.239/$1.asp [p]"
so that it got a proxy error?

Would it help if your rule were:
  RewriteRule ^/(.*\.asp(\?.*)?$) http://66.33.85.239/$1

assuming it even supports this regexp syntax?

-- Josh
_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks Founder                       Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to