i have 2 droplet, 1 domain + cloudflare, 1 loadbalancer
Droplet A with IP 111.111.111.111
Droplet B with IP 222.222.222.222
Loadbalancer with IP 333.333.333.333
Domain name abc.com

when i acces my domain abc.com i always get error 404, but if i point the domain to my droplet, i can access it without any error. am i missing something?

here is what i do.

Part 1 => Result in 404 (i turn off droplet B)
abc.com => A 333.333.333.333
WHN in droplet A setting => current address of abc.com 111.111.111.111

Part 2 => Result in 404 (i turn off droplet B)
abc.com => A 333.333.333.333
WHN in droplet A setting => current address of abc.com 333.333.333.333

Part 3 => Result in 200 OK (i turn off droplet B and ofc i didn’t use LB)
abc.com => A 111.111.111.111
WHN in droplet A setting => current address of abc.com 111.111.111.111

Part 4 => Result in 404 OK (i turn off droplet B and ofc i didn’t use LB)
abc.com => A 111.111.111.111
WHN in droplet A setting => current address of abc.com 333.333.333.333

i’ve tried many setting, but still don’t know what is the cause.
please help, thx

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hello,

Could you please share more information about the current setup? Did you configured the cPanel/WHM servers manually or using the marketplace? Are you using any replication to sync the data/files and the database as well?

Keep in mind that load balancing, replication and high availability is not natively supported on cPanel/WHM. You can also check this link on their requested features page:

https://features.cpanel.net/topic/built-in-load-balancing-replication-high-availability

A similar question was asked before in our community which you can check here:

https://www.digitalocean.com/community/questions/load-balancer-for-cpanel-whm

Regards,
Alex

  • i figure it out..
    when adding website i must assign private ip to that account to make the website work.

    so if i add abc.com and assign public ip, the website wont work with LB.
    but if i add abc.com and assign private ip, the website work.

    so, i assume deleting LB will result on website down, since all domain assigned using private ip to work with LB.

    • Hi there,

      Thanks for sharing this information.

      I believe that a lot of people with busy websites might consider to use Load balancing with cPanel/WHM so this information can be useful for them.

      Regards,
      Alex

Submit an Answer