| 3:51 pm on Nov 28, 2012 (gmt 0)|
welcome to WebmasterWorld, tgarijo!
you probably want to use mod_proxy.
| 3:59 pm on Nov 28, 2012 (gmt 0)|
Thank You phranque
Can you post some example for my case? I have not experience with mod_proxy.
| 4:03 pm on Nov 28, 2012 (gmt 0)|
Are the two servers the same physical machine?
If yes, you need an internal rewrite.
If not, you need to proxy the requests. However this is not without problems. Both servers will have to work twice as hard for every request, and unless you take special steps to use the X-FORWARDED series of headers, the server where the content resides will not be able to log who is really requesting the pages because all requests will appear to have come only from the other server.
You do not want a "redirect". With a redirect, the first server tells the browser to make a new request for a different URL and the address bar in the browser is updated when that second request is made.
There's some prior discussion of proxy methods here:
Please use example code from those earlier threads.
| 5:13 pm on Nov 28, 2012 (gmt 0)|
Ok Thank You
works fine with mod_proxy, it's possible that one rule, not use mod_proxy and all other yes
www.domain.com (use mod_proxy)
www.domain.com/foo (not use mod proxy )
| 5:37 pm on Nov 28, 2012 (gmt 0)|
I respond to me
ProxyPass /foo !
ProxyPass / [domain1.com...]
ProxyPassReverse / domain1.com
| 5:39 pm on Nov 28, 2012 (gmt 0)|
You might want to set the other server to accept only requests from the proxy server.