1

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 http://192.168.1.168
ProxyPassReverse /gitorious http://192.168.1.168
2
  • 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, 2013 at 17:23
  • I'm running Apache2 on ubuntu 12.04.1LTS
    – user83438
    Jan 30, 2013 at 17:49

1 Answer 1

1

Do you have enabled proxy module in Apache?

a2enmod proxy
1
  • That might be the reason. I'll try it when I get home. Thank you.
    – user83438
    Jan 30, 2013 at 17:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .