Mailing List Archive

[mod_backhand-users] Backhand to different servers on the same machine (httpd_doc & httpd_perl)
--opJtzjQTFsWo+cga
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I am trying to setup something that sounds straightforward to me. I have a=
server-farm with
webservers running httpd_doc on port 80 and httpd_perl on port 8080. Right =
now the doc server proxies
some requests to localhost:8080. I want to use backhand for this instead. =
So I installed it and configured it
on both servers, running on different ports. But somehow they seem to thin=
k they are the same server.

On looking on the backhand-status page, reloading it will always show one m=
achine, sometime the one on port 80,=20
sometimes the one on port 8080. Is it possible that backhand uses IP only =
to differentiate the servers, not the
combination IP+Port ???

I am confused here, everything seems to work fine, except that particular t=
hing...

Also, I read some information on the mailing-list archives on how to replac=
e mod_proxy by mod_backhand for a setup like=20
mine, finding references to BackhandSelfRedirect, but I am absolutely not s=
ure. How can I make my document server backhand
all *.pl requests to a backhand group of perl_servers ???

Thanks for any information
--=20
+-----------------------------------------------+
| Philippe M. Chiasson <gozer@hbesoftware.com> |
| SmartWorker http://www.smartworker.org |
| IM : gozerhbe ICQ : gozer/18279998 |
+-----------------------------------------------+
Unix has a dang lot of computer science mixed in with the
crap.=20
-- Larry Wall

perl -e '$$=3D\${gozer};{$_=3Dunpack(P26,pack(L,$$));/^Just Another Perl Ha=
cker!\n$/&&print||$$++&&redo}'

--opJtzjQTFsWo+cga
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE5/0XK3t2EuUQ3bNwRAox0AKDqQLSx76dTJj2JOl172d0ImSHdJQCeJdd6
bvh+Sw2TuJpUJVhRkkXt/IQ=
=Vwgu
-----END PGP SIGNATURE-----

--opJtzjQTFsWo+cga--
[mod_backhand-users] Backhand to different servers on the same machine (httpd_doc & httpd_perl) [ In reply to ]
"Philippe M. Chiasson" wrote:
>
> I am trying to setup something that sounds straightforward to me. I have a server-farm with
> webservers running httpd_doc on port 80 and httpd_perl on port 8080. Right now the doc server proxies
> some requests to localhost:8080. I want to use backhand for this instead. So I installed it and configured it
> on both servers, running on different ports. But somehow they seem to think they are the same server.
>
> On looking on the backhand-status page, reloading it will always show one machine, sometime the one on port 80,
> sometimes the one on port 8080. Is it possible that backhand uses IP only to differentiate the servers, not the
> combination IP+Port ???
>
> I am confused here, everything seems to work fine, except that particular thing...
>
> Also, I read some information on the mailing-list archives on how to replace mod_proxy by mod_backhand for a setup like
> mine, finding references to BackhandSelfRedirect, but I am absolutely not sure. How can I make my document server backhand
> all *.pl requests to a backhand group of perl_servers ???

you can use mod_rewrite to rewrite all your *.pl requests to the backhand server running on port 8080

RewriteEngine On
RewriteRule .*\.pl$ http://yourserver:8080/$0 [P,L]

and on port 8080 you configure a perl server with backhand capabilities to backhand
the requests to other perl/backhand servers -> mainly on other hardware, otherwise
it doesn't make much sense to backhand the request - you wont save any load :)

note: if you want to have two backhand server farms talk on the same net you have to use other
broadcast ports (if you plan to backhand your doc requests to another server farm)

hope that helps,
marcus.

--
________________________________________________________________________
ICAN Internet Services GmbH - www.ican.at Marcus Priesch
Loquaiplatz 12/1, A-1060 Vienna mpriesch@ican.at
Tel: +43(1) 595 41 24/26 Fax: +43(1) 595 41 24/99 ICQ: 56430787