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 server.mysite.net/gitorious 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
  • 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
  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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