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 running Apache on a box. I want to redirect every hit coming to that site to the entry page of a different site.

Site1 is Site2 is

I want every URL on Site1 to be redirected to site2 after stripping out everything at the end - i.e.

1) ==>
2) ==> (NOT
3) ==> (NOT not

I have the following ProxyPass setting in Site1

ProxyPass /

1) works fine - i.e. goes to
2) & 3) try to go to /abc & /pqr/mno on

How to I prevent this - I want everything on to go to the entry page on site2.

share|improve this question

Are you really sure you want to use the ProxyPass directive ? Is a public server all you client can access ?

If yes, then it looks more like a redirect to me.

But if is really a "private site" you want to proxy through, then perhaps ProxyPassMatch could be used like below:

ProxyPassMatch ^/(.*)$
share|improve this answer
ProxyPassMatch ^/(.*)$ doesn't work. It redirects to I want everything to be redirected to base site2. – Genboy Apr 21 '11 at 6:05

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.