Proxy multiple domains to the same IP?

I’ve got two domains, a.com and b.com. I am hosting the content for these two websites from the same IP (my home server). I can handle the incoming traffic/routing as needed, but it seems like enabling proxying for both of these domains breaks it entirely.

If I have both a.com or b.com pointing to 192.0.2.1 with proxying enabled on both then pages do not resolve anymore. If I have proxying enabled on one and “DNS only” on the other then it works fine.

Is this a known limitation to DNS proxying? Is there a way around this without requiring a second static IP?

No.

I’m unclear what this means. What error do you receive?

I’ve got absolutely no idea; stuff wasn’t working a couple weeks back, and now it is. It’s probably a safe assumption that I had a typo somewhere or just did something else incorrect. Stuff is working now at any rate!

1 Like

Actually scratch this, it doesn’t work, hah. I suspect it’s something on my end related to routing or something. I’ve got stuff set up to use Traefik as a reverse proxy, and I imagine there’s something going wrong there but I’m not certain. I’ll look into that more closely if the issue isn’t a Cloudflare limitation.

Just to make sure, this is just a placeholder and you are actually using your real IP address?

Also:

Yeah it was just a placeholder. The error was just a 404.

I did fix it, though, and the answer was just that one of the domains (the newer one) was using Flexible SSL instead of Strict. Switching it to strict solved it. :upside_down_face:

2 Likes

An RFC complaint placeholder IP always throws us for a loop. Well done. :smiley:

1 Like

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