RE: mod_proxy_balancer problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have changed my VirtualHost configuration like this:

<VirtualHost *:80>
        ServerName lbtest.lifeonline.be
        ServerAdmin benoit.pironet@xxxxxxxxx
        ProxyPass / balancer://mycluster2 stickysession=PHPSESSIONID
nofailover=On
        <Proxy balancer://mycluster2>
                BalancerMember http://www.lifeonline.be:80
        </Proxy>
        ProxyPassReverse / htt://www.lifeonline.be:80
        ErrorLog /var/log/http-balancer_error
</VirtualHost>

But http://lbtest.lifeonline.be/img/logo.jpg  does not run but
http://www.lifeonline.be/img/logo.jpg  runs :(

Do you know where I did the error ?

Thank you in advance,

Benoit Pironet

-----Original Message-----
From: Peter Hinse [mailto:loco@xxxxxxxxxxx] 
Sent: Tuesday, March 27, 2007 11:55 AM
To: users@xxxxxxxxxxxxxxxx
Subject: Re:  mod_proxy_balancer problem

PIRONET Benoit wrote:
> Hello everybody
> 
>  
> 
> I have an apache 2.2.4 on a freebsd 5.4 server.
> 
>  
> 
> I try to set up a virtual host with load balancing.
> 
>  
> 
> Here is a part of my httpd.conf:
> 
> LoadModule proxy_module libexec/apache22/mod_proxy.so
> 
> LoadModule proxy_balancer_module
libexec/apache22/mod_proxy_balancer.so
> 
> LoadModule proxy_http_module libexec/apache22/mod_proxy_http.so
> 
> LoadModule proxy_connect_module libexec/apache22/mod_proxy_connect.so
> 
> LoadModule proxy_ftp_module libexec/apache22/mod_proxy_ftp.so
> 
> LoadModule proxy_ajp_module libexec/apache22/mod_proxy_ajp.so
> 
>  
> 
> The load balancer status:
> 
> <Location /balancer-manager>
> 
> SetHandler balancer-manager
> 
>  
> 
> Order Deny,Allow
> 
> Deny from all
> 
> Allow from all
> 
> </Location>
> 
>  
> 
> And the configuration of my vhost for load balancing:
> 
> <VirtualHost *:80>
> 
>         ServerName lbtest.lifeonline.be
> 
>         ServerAdmin benoit.pironet@xxxxxxxxx
> 
>         ProxyPass / balancer://mycluster2 stickysession=PHPSESSIONID
> nofailover=On
> 
>         <Proxy balancer://mycluster2>
> 
>                 BalancerMember http://www.lifeonline.be:80
> 
>         </Proxy>
> 
>         ErrorLog /var/log/http-balancer_error
> 
> </VirtualHost>
> 
>  
> 
> I get two problems:
> 
>  - I can't get sub-ressources out of a balanced host using the load
> balancer virtual host.
> 
>    I get this error in the error log file:
> 
> [Sun Mar 25 18:49:00 2007] [warn] proxy: No protocol handler was valid
> for the URL /img/logo.jpg. If you are using a DSO version of
mod_proxy,
> make sure the
> 
> proxy submodules are included in the configuration using LoadModule.
> 
>  
> 
> I read on the web that sub modules of mod_proxy has to be enabled but
> they are. And I don't find any other solution.
> 
>  
> 
> The second problem is about http://www.lifeonline.be/balancer-manager
>   The url runs but no balancing options are proposed. I only get this:
> 
> 
>   *Load Balancer Manager for www.lifeonline.be*
> 
> Server Version: Apache/2.2.4 (FreeBSD) mod_ssl/2.2.4 OpenSSL/0.9.7e
> DAV/2 PHP/5.2.1

If you are using mod_proxy_http you have to create one ProxyPassReverse
for each BalancerMember you define in the balancer.

Regards,

	Peter

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux