I'd like to configure apache so that http://my-domain.com/myapp serves a Python webapp running in CherryPy on a backend server.
Here's what's in the vhost:
RewriteRule ^/myapp/?(.*) http://backend-server:8000/$1 [P]
ProxyPassReverse /myapp/ http://backend-server:8000/
When I trace the request/response, I see:
GET /myapp HTTP/1.1
Host: my-domain.com
And then:
HTTP/1.1 303 See Other
Date: Thu, 15 Sep 2011 21:46:35 GMT
Server: CherryPy/3.1.2
Content-Type: text/html;charset=utf-8
Location: http://my-domain.com/somwhere-else/
As you can see, the CherryPy webapp sends a 303 redirect to /somewhere-else/
Any ideas why the Apache ProxyPassReverse doesn't transform the Location to http://my-domain.com/myapp/somewhere-else
?