Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
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

1 Answer 1

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

 
discard

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.