banner
AcoFork

AcoFork

LOVETOLOVE

Try dual-domain Cloudflare IP optimization to make your website fly!

Effect Diagram#

Not optimized
3b50d36ea83a5275e8b6cad8c8ce2938

After optimization
1266bac097f7548db3fd2428846633c6

It can be seen that although the latency did not increase much after optimization, the number of exit IPs increased, which helps improve the accessibility of the website.

Requirements#

  1. Two primary domain names, both hosted on Cloudflare. One as the main domain and one as the auxiliary domain. Each optimization of a website on the auxiliary domain consumes one, while the main domain can be reused.
  2. Brain

Official Start#

  1. First, resolve your auxiliary domain to your website. You can use CNAME, A, or AAAA resolution, and you need to enable Cloudflare's CDN proxy.
    image
  2. Go to SSL\TLS -> Custom Hostnames. Set the fallback origin to the domain you just set. Set the custom hostname to the domain you ultimately want users to access (no resolution setup is needed at this stage). The first setup requires TXT verification, just add a TXT record at the DNS of the main domain.
    c4aeb11312c0a40a7bb399399a73826e
  3. Then, add a resolution on your auxiliary domain pointing to the community's optimized domain, without enabling Cloudflare's CDN proxy.
    image
  4. Finally, add a CNAME record on your main domain pointing to your auxiliary domain (you can use a subdomain, but it must be consistent with the previously set custom hostname).
    image
  5. Access it to check if the connection is successful. You can use ITDOG to test the website.

Troubleshooting#

  1. Q: If my origin site uses Cloudflare Tunnels for public access and I see 404 Not Found after following the above steps.
    A: You need to add the domain you ultimately want users to access on your Tunnels page. Cloudflare will automatically create a CNAME for you; change it to point to your auxiliary domain. For example: image
    Cloudflare Tunnels page:
    f1984695b13b08688ba14fcba8a2b4d0

  2. Q: If my origin site port is not 80/443.
    A: Set Origin Rules, which need to include the origin site and the domain you ultimately want users to access.
    970e64557b55d786b1935484d69ed170

  3. Q: If my origin site is on serv00.
    A: Create a new Proxy on the WWW Website page of serv00, with the domain as the domain you ultimately want users to access (not for actual use, only for whitelisting; otherwise, access will be unreachable).

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.