Task: Configure Web Server to Handle CNAME Redirect and Fix 400 Bad Request Error
Task: Configure Web Server to Handle CNAME Redirect and Fix 400 Bad Request Error: a task in Terminal-Lego-15k (Harbor dataset). When a CNAME record points subdomain.hostone.com to subdomain.hosttwo.com , the DNS resolution works correctly, but the web server on host two receives requests with the…
The task
When a CNAME record points `subdomain.hostone.com` to `subdomain.hosttwo.com`, the DNS resolution works correctly, but the web server on host two receives requests with the `Host` header set to `subdomain.hostone.com`. If the web server on host two is not configured to accept that hostname, it returns a **400 Bad…
Part of PrimeIntellect/Terminal-Lego-15k.