[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    OT: Re: RewriteRule Proxy problems
From:       ___cliff rayman___ <cliff () genwax ! com>
Date:       2001-07-30 20:30:49
[Download RAW message or body]



Perrin Harkins wrote:

> > 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.
>
> Of course you do. Your regex ^/(.*)\.asp doesn't match that URL with the
> query string.
> - Perrin

seems like it does match.  it's monday, so maybe my internal pattern
matching engine needs some tweaking.  ;-)

the rewrite engine gets handed:
/rotatorstats.asp?login=pmak0

start from the beginning of the string and match the leading slash,
then match all following characters.  keep backing up till \.asp is
also matched.  i don't see how the query string makes any difference.
if he put an end of string '$' at the end of the pattern, then that would
change the matching and cause it to fail.

--
___cliff rayman___cliff@genwax.com___http://www.genwax.com/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic