I am happy to join the community and want to share my little problem with you.
I have a wildcard entry for example.com in my DNS that points all subdomains to some kind of computer
* IN A 172.172.172.172
While the NGINX configuration for this domain contains only the actively used subdomain names
server { listen 10.0.0.1:80; server_name example.com www.example.com moskva.example.com www.moskva.example.com tokyo.example.com www.tokyo.example.com; ... }
What I want to achieve directs all unconfigured subdomains, such as "error.example.com" to a specific address. Is there an elegant way to solve this problem?
Regards Arek
source share