mod_rewrite
One could have mod_proxy compiled in and dispense with the duplicate ProxyPass/ProxyPassReverse directives (necessitated by the way redirects are handled by ProxyPass). mod_rewrite allows us to say, for instance,
RewriteRule /cgi-bin/ http://cgiserver.example.com/cgi-bin/ [P,L]
The P flag tells mod_rewrite to pass through the request.
One can also use mod_rewrite to pass through requests to a multiplicity of back end but similarly functioning machines. One could use this:
RewriteMap    lb      rnd:/path/to/backend.table
RewriteRule   ^/(.+)$ http://${lb:www}/$1           [P,L]
to pass requests to back end servers in a random fashion where the backend.table consists of
www ww1.example.com|ww2.example.com|ww3.example.com|ww4.example.com
Slide 10 of 27 Contents
  1 |   2 |   3 |   4 |   5 |   6 |   7 |   8 |   9 | 10
11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20
21 | 22 | 23 | 24 | 25 | 26 | 27
www.arachna.com > Educational Resources > Conference Presentations

spidaman
© 1999-2008 Ian Kallen | Copyright Notice