Nginx Catch-All Server Blocks for Invalid Subdomains
Nginx Catch-All Server Blocks for Invalid Subdomains: a task in Terminal-Lego-15k (Harbor dataset). You have a single host running nginx that serves multiple domains ( domain1.com and domain2.com ). Each domain has its own SSL certificate and nginx configuration file. The goal is to properly…
The task
You have a single host running nginx that serves multiple domains (`domain1.com` and `domain2.com`). Each domain has its own SSL certificate and nginx configuration file. The goal is to properly handle invalid subdomains (e.g., `foo.domain1.com`, `bar.domain2.com`) by returning a 404 response, without causing nginx…
Part of PrimeIntellect/Terminal-Lego-15k.