When using apache to reverse proxy, is it possible to forward http://somesite.com/ and http://somesite.com/foo to different servers? Say one goes to http://internalserver1/ and the other goes to http://internalserver2/foo
I can obviously just drop further down the path (ie http://somesite/bar) but its not desirable.
it seems that order of directives in your vhost is important. and yes - you can achieve what you need. i just run test for:
and it worked fine - all requests [ except those directed to /q/something ] ware proxied to another.host. those for /q/whatever - went to host.one.com
You should be able to do this using mod_rewrite. It evaluates conditions in order and you can specify the [L] flag to make it stop processing further rules.
Full mod_rewrite documentation is at http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html