Cloudflare Load Balancer gives me a 404

I just setup a new Cloudflare load balancer for the first time. It has 3 origins in 3 regions. It also has geo steering enabled. Each origin points to a different Google Cloud Function. The URL values look like this:

europe-west1-xxxxx.cloudfunctions.net

Finally, the load balancer hostname is api.yyyyyy.com

The problem is that when I load up this URL in any browser, I doesn’t show me what I would be seeing if I had entered the cloud function URL. Instead, it just shows me a Google 404 page.

enter image description here

If I try and replace any of the origin addresses with, say, example.com or any OVH website, then I’ll see the 404 page for the CDN behind example.com or OVH.

What am I doing wrong?

The Host header/TLS SNI will be api.example.com (your real hostname) no matter what, so you need to make sure the service you’re proxying has a vhost configuration for that hostname.

http://goo.gl/search/google+cloud+functions+custom+domain

1 Like

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