Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

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/

share|improve this answer
add comment

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.