Multiple names for load balancing

Good morning,

I created a Load Balancing with the name “example” pippo.cloud
How can I also add www.pippo.com? without purchasing/maintaining a second or third balancer service?
Load balancing doesn’t allow me to add other names.
I tried to create a CNAME record that points to the balancer, is this the correct way?

Thank you

That should work. Did it not work for you?

no, because by doing so one of the origin servers included in the LB is directly reached.
The origin servers are closed and can only be reached via Cloudflare’s public IPs.

A CNAME to an origin server (load balanced or not) works the same way. Are you sure your origin is configured to accept connections for that hostname?

2 Likes

yes, I’m sure the server accepts that name.
The problem is that the 2 origin servers are behind firewalls that do not accept calls from IPs different from those of Cloudflare, and in doing so
(I don’t think I’m wrong) the connection bounces back to me and I go to contact the server with its IP.

I am not sure what you are describing. Is your CNAME set to proxied in Cloudflare? If so you can check for yourself that it is resolving to Cloudflare IP addresses.

If after connecting you are being redirected to an IP instead of the CNAME then your origin is not configured correctly.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.