perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Weber <>
Subject Dynamic Proxy Setup???
Date Mon, 14 Aug 2006 15:33:02 GMT
I would like to set up <b>dynamic proxy server names in httpd.conf </b>in
an  Apache/2.2.2 (Unix) mod_apreq2-20051231/2.5.7 mod_perl/2.0.2
Perl/v5.8.8 on Red Hat&nbsp; 2.6.9-34.0.2.ELsmp #1 SMP
By this I mean, I have front end servers: F1 and F2, and middle-tier
servers M1 and M2. I would like F1 to proxy to M1 and F2 to proxy to M2.
I would like to have a small piece of code do this, rather than having
unique httpd.conf files for each F# server. This may not be a pure load
balanced solution like a load balancer solution, but would like to be
able to do this in code/setup for now.<br><br>
</b>Don't want to do this on F1, httpd.conf:<br>
ProxyPass /users/
<a href="http://m1/users" eudora="autourl">http://M1/users<br><br>
</a><b>and NOT:<br>
</b>Don't want to do this on F2, httpd.conf:<br>
ProxyPass /users/
<a href="http://m2/users" eudora="autourl">http://M2/users<br><br>
</a><b>Want THIS:<br>
</b>Want Something like this that would be in httpd.conf in both F1 and
ProxyPass /users/
<a href="http://$server/users" eudora="autourl">http://$server/users<br>
</a>Sorry for the newbie type question. Not sure where to look. Didn't
see anything in any of the mod-perl books, nor anything online in google
searches, unless I missed something.<br><br>
Thanks as always,<br>

View raw message