I am looking to recreate our current local development setup from Nginx where we specify different subdomains for a domain name that could potentially change.
We have virtual hosts similar to the following:
server { … }
server foo. {…}
server bar.* {…}
No, Caddy tries to follow RFC 6125 here, whereby only left-most labels are matched for wildcards. This is because Caddy also manages the certificates based on these hostnames. We could look into loosening this but we’d have to vet it thoroughly because it’s such a critical part of what Caddy does.
This is a very strange need, though. What is your use case?