Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have following situation:

I have a site, which is pointing to Server1 ., should point to Server2, but the URL in the address bar should't be changed. The user should think that it is the same site.

How do I implement something like this?

share|improve this question

There's no way you can do this without the traffic going through the first server. You can use some type of proxying system (most webservers have one built in).

share|improve this answer

You may be able to use an Apache rewrite rule to redirect search to server2 but its not clear to me how you would mask the resulting URL.

share|improve this answer
By using a reverse proxy, either directly or through a rewriterule with the [P] flag appended. – adaptr Mar 14 '12 at 13:31

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.