httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aubrey Hutchings <aubr...@ee.byu.edu>
Subject [users@httpd] Differences between ProxyPass and RewriteRule
Date Thu, 02 Sep 2004 21:37:51 GMT
Hello.

I've figured out three ways to solve my problem and on the surface, they
*seem* to do the same thing. However, out of curiousity I'm wondering
what differences, if any, are going on in the background.

Basically what I am doing is telling Apache to fetch pages off of
another server, but not look like it is doing so. For example, when
people come to: http://www.fake.com/bob I want Apache to send them to
http://www.notreal.com/bob without them seeing in the URL bar that
anything has changed. 

So, here are the three ways I found... can anyone tell me about the
nuances between these different versions or where I might find a
comparison in the documentation?

Way #1

RewriteRule    ^/bob/(.*)$  http://www.notreal.com/bob/$1  [P,R]  

Way #2

RewriteRule    ^/alumni/(.*)$   http://www.et.byu.edu/~aubreyh/alumni/$1  [P]    

Way #3

ProxyPass           /bob/   http://www.notreal.com/bob/                                  
  
ProxyPassReverse    /bob/   http://www.notreal.com/bob/  

Thanks,
-- 
Aubrey Hutchings
aubreyh@ee.byu.edu

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message