Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have content which is hosted on serverA.com/site, however, when a user visits serverB.com/sitename, I would like it to load the content of serverA.com/site (while the url is sitll on serverB).

Is this possilbe, and if so, how?

share|improve this question
Telling at least which web server software you're using would be helpful... –  Massimo Sep 18 '12 at 18:51
Both servers are running apache –  Steven1350 Sep 18 '12 at 20:00

1 Answer 1

AFAICS you need to reverse-proxy connections for that.

ProxyRequests Off
ProxyPreserveHost On

<Proxy *>
  Order allow,deny
  Allow from all

ProxyPass /sitename/ http://serverA.com/site/
ProxyPassReverse /sitename/ http://serverA.com/site/

See here for a more detailed explanation, and here for the mod_proxy documentation.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.