Multiple server blocks, same cloudfare dns

dns

#1

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


#2

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.