This is the exact place I started, and here's what happens:
$ curl --dump - http://FOO.com/a/
HTTP/1.1 302 Moved Temporarily
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8
Date: Mon, 26 Nov 2012 23:49:30 GMT
Location: http://FOO.com/public/Welcome.action
Content-Length: 0
Connection: keep-alive
Note that the Location: line no longer has the /a/ embedded. That's because ProxyPassReverse does a right hand match on the returning URL - and remaps it if it matches. If I change the ProxyPassReverse line back to
ProxyPassReverse /a/ http://FOO.com/
The Location tag changes to include the /a/, and it works correctly:
$ curl --dump - http://FOO.com/a/
HTTP/1.1 302 Moved Temporarily
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8
Date: Mon, 26 Nov 2012 23:51:53 GMT
Location: http://FOO.com/a/public/Welcome.action
Content-Length: 0
Connection: keep-alive
But, this won't work with the second sub-path, with the /c/, because I'd need to have the same path (http://FOO.com/), which means there's a conflict.
-d
On 11/26/12 6:41 PM, Igor Cicimov wrote:
# Working, live production host:
ProxyPass /a/ ajp://10.211.42.48:8009/
ProxyPassReverse /a/ ajp://10.211.42.48:8009/
# app test host
ProxyPass /c/ ajp://10.122.95.146:8009/
ProxyPassReverse /c/ ajp://10.122.95.146:8009/
-- Dave Shevett shevett@xxxxxxxxx