we have many subdomains and want to use a central Caddy server to redirect all requests to the subdomains to other caddy public servers. We are doing this in order to avoid creating thousands of DNS entries for each subdomain, instead we use a dns * wildcard that points to the main Caddy server
I’m sorry, but this is getting confusing. There are too many hypothetical scenarios, and the IPs keep changing in your examples. I’m not sure what I’m supposed to refer to anymore.
Could you share your actual configuration and stick to the template when providing details? Otherwise, it just feels like guesswork.
Why do you have port 440 in the reverse_proxy directive on the main server? That port does not appear anywhere in your server1, 2, or 3 Caddyfiles.
That can be achieved in many different ways, but without a complete and consistent configuration, it is hard to give a meaningful answer. Right now, important details seem to be missing or simplified, which makes it difficult to understand how your setup actually works.
At this point, I can only guess, and that is not very helpful.
when users download a 1tb file located on Server1 is the bandwidth going to be consumed on the Main server as well or the Main server just redirects the query to Server1 when users type the address in the browser ?
I’ll say it in another way:
is the Main server acting like a DNS forwarder or like a tunnel where bandwidth transits through it?