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 am reverse proxying one site to another site. It's working nicely, but on some links it displays the original link. Here is my configuration

Original Site ""

Second site configuration which is proxypassed on ""

<VirtualHost *:80>

   ErrorLog /var/log/apache2/test.mysite_log.log
   TransferLog /var/log/apache2/test.mysite-access_log.log
   LogLevel info
   LogFormat "%h %l %u %t \"%r\" %>s %b %T" common

   ProxyPass /
   ProxyPass /
   ProxyPassReverse /

Now, everything is working well, but the problem is that when I go to some specific link it redirects me to original link. For Example, there are two sections on my page: "about-us" and "inquiry". When I click on "about-us" it takes me to "" which is ok

When I click on "inquiry" it takes me to "" which is not correct it must be "".

I think I've missed some thing to add in configuration file but I can't figure it out.

share|improve this question
Looks like you missed the what you called "original site" configuration. At a first glance you have a double definition of ProxyPass / Additionally you should increase your LogLevel and tail it while calling the pages. Might give some extra informations. – Chris Apr 10 '12 at 9:29

ProxyPassReverse only rewrites HTTP headers. It has nothing to do with full URLs inside original pages.

You may want to use a third party module - say mod_proxy_html.

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.