mardi 21 juin 2016

Apache Load Balancing

I am trying to figure out an issue on one of my test servers.

I have 1 server that acts as a load balancer and it has the following configuration,

ProxyPassMatch ^/(.*)$ balancer://mycluster/$1 lbmethod=byrequests
ProxyPassReverse / balancer://mycluster

<Proxy http://balancermycluster>
  BalancerMember http://192.168.1.2
  BalancerMember http://192.168.1.3
</Proxy>

The problem is that when I access the webpage of my web app, it tries to load an image with 192.168.1.2/img/ url instead of the domain.com/img/ so it resulted that when I visit the load balancer, I got a "not found" error and the image won't load.

Is there something wrong with the load balancer configuration?

Thanks!




Aucun commentaire:

Enregistrer un commentaire