Port 80 to difrent server

client that have 2 web system
let say is domain is clientdomain[.]com
we have 2 difrent web servers one VPS-1 with ip ex. 111.111.111.111 and other web VPS-2 with ip ex. 222.222.222.222
client ask when user go to http[:]//clientdomain[.]com (port 80) he will get the web site on VPS-1 with ip ex. 111.111.111.111 and when he ask https[:]//clientdomain[.]com (port 443) he will get web site on VPS-2 with ip ex. 222.222.222.222
we have Cloudflare waf on the domain
please help how to configure

This is not possible with traditional DNS, however, it can be achieved with Cloudflare if the DNS record is proxied. You have three options:

  1. Resolve Override with Cloudflare Workers (any plan, only HTTP(S) traffic)
  2. Resolve Override with Origin Rules (Enterprise plan, only HTTP(S) traffic)
  3. Cloudflare Spectrum (Enterprise plan + additional costs, any TCP/UDP protocol)

Option 1 is available to all plans, but you will have to write and deploy the script yourself. Option 2 is the easiest but it requires an Enterprise plan. Option 3 is the most compatible but also the most expensive.

1 Like

Hi
we have client that have 2 web system
let say is domain is xxxyyy[.]com
we have 2 difrent web servers one VPS-1 with ip ex. 111.111.111.111 and other web VPS-2 with ip ex. 222.222.222.222
client ask when user go to http[:]//xxxyyy[.]com (port 80) he will get the web site on VPS-1 with ip ex. 111.111.111.111 and when he ask https[:]//xxxyyy[.]com (port 443) he will get web site on VPS-2 with ip ex. 222.222.222.222
we have Cloudflare waf on the domain
please help how to configure

The short answer is: you cannot do that.

This was just discussed here yesterday. While the ports were different, the question and answer are the same.

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