Multiple server blocks, same cloudfare dns



I have a nginx server with several server blocks (ex: “example1. com”, “test.example1 .com”, “example2. com”, “test.”). How should I set the cloudflare dns so I can access all of them?


Each domain needs to be added to Cloudflare, so you’ll have do to a “+Add Site” for the example1 and example2 domains. The setup process will scan existing DNS records. If anything is missing, like a DNS entry for “test,” you’ll have to manually add those DNS entries in Cloudflare.