Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Hello I'm trying to figure out mod_proxy in apache to access an backend web server on a virtual machine running Gitorious. I have looked at examples and tried them but I still can't figure it out.

the goal is to forward the user when is accessed to the back end virtual server.

I have added the following to my config file but I get an error saying "invalid command ProxyPreserveHost" when I restart apache.

ProxyPreserveHost On
ProxyPass /gitorious
ProxyPassReverse /gitorious
share|improve this question
There doesnt seem to be anything wrong with your config. Maybe a dumb question, but which version of apache are you running? – timmeyh Jan 30 '13 at 17:23
I'm running Apache2 on ubuntu 12.04.1LTS – user83438 Jan 30 '13 at 17:49

Do you have enabled proxy module in Apache?

a2enmod proxy
share|improve this answer
That might be the reason. I'll try it when I get home. Thank you. – user83438 Jan 30 '13 at 17:48

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.