up vote 0 down vote favorite
share [g+] share [fb]

I am trying to setup reverse proxy on Apache/2.2.9 on Ubuntu server to reverse proxy the directory /someapp to another server, using the following config:

<VirtualHost *:80>
ServerAdmin webmaster@localhost

ProxyRequests Off

ProxyPass /someapp http://somehost:8080/someapp/
ProxyPassReverse http://somehome:8080/someapp/ /someapp

When I browse to http://host/someapp I am redirected to http://somehome:8080/someapp instead of proxying the request.

Is there something I missing?

link|improve this question
2  
Belongs on Server Fault. serverfault.com – musicfreak Jul 21 '09 at 22:49
Should be moved, couldn't find a similar question on there. – Stefan Thyberg Jul 21 '09 at 22:54
How do I move the question to Server Fault, any ideas please? – TheMoo Jul 22 '09 at 8:24
feedback

2 Answers

up vote 2 down vote accepted

Your last line should be the other way around:

ProxyPassReverse http://somehome:8080/someapp/ /someapp

should be:

ProxyPassReverse /someapp http://somehome:8080/someapp/

link|improve this answer
feedback

Maybe this tutorial can be of use.

link|improve this answer
Thanks, for the link I tried following that tutorial and it made me even more confused. – TheMoo Jul 22 '09 at 15:01
Sorry, it was the only even slightly comprehensive thing I could find on the subject of setting up a reverse proxy on Apache. – Stefan Thyberg Jul 22 '09 at 15:50
feedback

Your Answer

 
or
required, but never shown

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