1. The problem I’m having:
I have just a general question if it’s possible with CaddyFile.
i have a subdomain test.example.com pointing to caddy server.
using CaddyFile i am doing
and it’s working perfectly.
Now i need more than one proxy running on the same server, instead of creating more subdomains on DNS side, i want it to handle at caddy side:
Please note that only test.example.com’s A record is pointing to caddyserver. So is it even possible using CaddyFile?
3. Caddy version:
4. How I installed and ran Caddy:
a. System environment:
You must configure DNS to point to your server’s IP address, otherwise no browsers on the internet will know how to reach your server for those other domains.
You can use a wildcard subdomain like
*.example.com in your DNS to make all subdomains resolve to your server.
well the issue is, my domains are like:
alpha.example.com → pointing to caddy_server_1
bravo.example.com → pointing to caddy_server_2
where alpha has further: alpha-1.example.com alpha-2.* same way with bravo-n etc…
if that is not possible then could I configure in this way?
You need to configure each subdomain individually, or use a wildcard. There’s no in-between with DNS.
To clarify, that question doesn’t have to do with webservers, it’s about how DNS works.
You could do
See this article:
Thanks, I’ll try that at my domain provider first.
if that works then will that config work?
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.