You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by James Richardson <ja...@db.com> on 2005/04/18 11:55:36 UTC
[users@httpd] Repost: Reverse proxy load balanced question
Can anybody help out on this one? Would much appreciate it.
Thanks!
James
> -----Original Message-----
> From: "James Richardson" <ja...@db.com>
[mailto:"James
> Richardson" <ja...@db.com>]
> Sent: 14 April 2005 15:32
> To: users@httpd.apache.org
> Subject: [users@httpd] Reverse proxy load balanced question
>
>
> Hi,
>
> Currently I am using mod_proxy to map multiple web application servers
> into a single content root like this:
>
> <Location /foobar>
> RewriteEngine on
> RewriteRule htdocs/(.*)$ http://bar.foo.com:8080/$1 [P]
> ProxyPassReverse http://bar.foo.com:8080/foobar
> </Location>
>
> This works very well (although I think that I've not 100% got the hang
of
> the rewrite, it does work very successfully).
>
> However, I would now like to use a rnd: text mapped file for the reverse
> proxied host (so as to do a non-sticky load balance), and I don't really
> understand how to place this into my config....
>
> I have so far this:
>
> RewriteMap servers rnd:/home/richja/apache/test/conf/servers.txt
> <Location /foobar>
> RewriteEngine on
> RewriteRule htdocs/(.*)$ http://${servers:foobar}:8080/$1
> [P]
> ProxyPassReverse http://?????what_to_put_here?
> </Location>
>
> But I'm a bit stuck as how to handle the ProxyPassReverse rule.
>
> I would much appreciate any pointers...
>
> Thanks!
>
> James
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org