Tell me more ×  I'm looking for a reverse proxy solution which
either:  a) Let's me explicitly define which requests go to
which servers based on a regex (or some other similar way of
defining that certain URL patterns get mapped to certain back-
end servers)   b) Supports some sort of hash algorithm for
proxying so that requests for a given URL always get mapped to
one specific server, and publishes that algorithm so that I can
use it in my application to determine which server a given URL
will be mapped to.  Anything out there like this? Or do I have
to write my own...?  share|improve this question add comment  2
Answers  up vote 2 down vote accepted  As far as full-on web
servers with proxy capabilities go, both Apache and nginx would
both be capable of satisfying option a.  In Apache, you would
want to use mod_rewrite's proxy capability:  RewriteRule
/(location[1-5]*\.html)$$1 [P]  In nginx, you'd just use a regex
for your location directive - see here  For option B, most
proxies that implement a hashing o