Hello everyone, as you can see in the title, I'm having some trouble trying to make a load balancer on one of my FreeBSD servers.
I don't know why but the configuration that I'm giving to apache looks fine, because it's giving me a "syntax ok" when I restart the service, but asks me if the service is running, and unfortunately is not. I check in /var/run but doesn't appear.
All I did was just basically edit the default httpd.conf file.
I added this at the end of the file:
I loaded the necessary modules too to make this work.
I tried using nginx and works perfectly the load balancer, but I would like more to use apache if I can.
Regards and thank you for your help.
I don't know why but the configuration that I'm giving to apache looks fine, because it's giving me a "syntax ok" when I restart the service, but asks me if the service is running, and unfortunately is not. I check in /var/run but doesn't appear.
All I did was just basically edit the default httpd.conf file.
I added this at the end of the file:
Code:
<VirtualHost *:80>
<Proxy balancer://cluster>
BalancerMember http://192.168.1.25:80
BalancerMember http://192.168.1.26:80
</Proxy>
ProxyPreserveHost on
ProxyPass / balancer://cluster
ProxyPassReverse / balancer://cluster
</VirtualHost>
I tried using nginx and works perfectly the load balancer, but I would like more to use apache if I can.
Regards and thank you for your help.