Looking for some help...
I am trying to add a test for the proxy balancer stuff. In extra.conf.in I have: IfModule mod_proxy_balancer.c VirtualHost proxy_http_bal1 DocumentRoot @SERVERROOT@/htdocs/modules/proxy /VirtualHost VirtualHost proxy_http_bal2 DocumentRoot @SERVERROOT@/htdocs/modules/proxy /VirtualHost /IfModule to define the 2 balanced proxies Now I also have in proxy.conf.in: IfModule mod_proxy_balancer.c VirtualHost _default_:mod_proxy_balancer Proxy balancer://foo BalancerMember http://proxy_http_bal1 loadfactor=1 BalancerMember http://proxy_http_bal2 loadfactor=1 /Proxy ProxySet balancer://foo lbmethod=bytraffic Location /baltest ProxyPass balancer://foo/ /Location /VirtualHost /IfModule Now, the rub is that those 2 BalancerMember lines (http:// ...) should actually have the url for the 2 balanced proxies (localhost:port)... But I can't for the life of me figure out how to obtain what the auto-gen'ed port numbers for those 2 balanced vhosts will be. Any ideas?
Re: Looking for some help...
On Fri, Aug 19, 2005 at 12:10:11PM -0400, Jim Jagielski wrote: I am trying to add a test for the proxy balancer stuff. yay! :) In extra.conf.in I have: IfModule mod_proxy_balancer.c VirtualHost proxy_http_bal1 DocumentRoot @SERVERROOT@/htdocs/modules/proxy /VirtualHost VirtualHost proxy_http_bal2 DocumentRoot @SERVERROOT@/htdocs/modules/proxy /VirtualHost /IfModule to define the 2 balanced proxies Now I also have in proxy.conf.in: IfModule mod_proxy_balancer.c VirtualHost _default_:mod_proxy_balancer Proxy balancer://foo BalancerMember http://proxy_http_bal1 loadfactor=1 BalancerMember http://proxy_http_bal2 loadfactor=1 /Proxy ProxySet balancer://foo lbmethod=bytraffic Location /baltest ProxyPass balancer://foo/ /Location /VirtualHost /IfModule Now, the rub is that those 2 BalancerMember lines (http:// ...) should actually have the url for the 2 balanced proxies (localhost:port)... But I can't for the life of me figure out how to obtain what the auto-gen'ed port numbers for those 2 balanced vhosts will be. Hmm - do you really need the special vhosts if they will just behave the same as the default server? You can use @SERVERNAME@:@PORT@ to get that vhost name out. joe
Re: Looking for some help...
On Fri, Aug 19, 2005 at 05:24:06PM +0100, Joe Orton wrote: On Fri, Aug 19, 2005 at 12:10:11PM -0400, Jim Jagielski wrote: Now I also have in proxy.conf.in: IfModule mod_proxy_balancer.c VirtualHost _default_:mod_proxy_balancer Proxy balancer://foo BalancerMember http://proxy_http_bal1 loadfactor=1 BalancerMember http://proxy_http_bal2 loadfactor=1 /Proxy I tweaked Apache::Test to make this possible: try VirtualHost proxy_http_bal1 ... /VirtualHost VirtualHost mod_proxy_balancer Proxy balancer://foo BalancerMember http://@SERVERNAME@:@PROXY_HTTP_BAL1_PORT@ ... etc - you must ensure that the referenced vhost is defined before you use the corresponding _PORT variable; i.e. put them in the same .conf.in file in that order. joe
Re: Looking for some help...
Joe Orton wrote: Hmm - do you really need the special vhosts if they will just behave the same as the default server? You can use @SERVERNAME@:@PORT@ to get that vhost name out. Well, to be as close to the usual use, yeah, we do. -- === Jim Jagielski [|] [EMAIL PROTECTED] [|] http://www.jaguNET.com/ Sith happens - Yoda
Re: Looking for some help...
Joe Orton wrote: On Fri, Aug 19, 2005 at 05:24:06PM +0100, Joe Orton wrote: On Fri, Aug 19, 2005 at 12:10:11PM -0400, Jim Jagielski wrote: Now I also have in proxy.conf.in: IfModule mod_proxy_balancer.c VirtualHost _default_:mod_proxy_balancer Proxy balancer://foo BalancerMember http://proxy_http_bal1 loadfactor=1 BalancerMember http://proxy_http_bal2 loadfactor=1 /Proxy I tweaked Apache::Test to make this possible: try VirtualHost proxy_http_bal1 ... /VirtualHost VirtualHost mod_proxy_balancer Proxy balancer://foo BalancerMember http://@SERVERNAME@:@PROXY_HTTP_BAL1_PORT@ ... etc - you must ensure that the referenced vhost is defined before you use the corresponding _PORT variable; i.e. put them in the same .conf.in file in that order. YES! Thanks! :) -- === Jim Jagielski [|] [EMAIL PROTECTED] [|] http://www.jaguNET.com/ Sith happens - Yoda