Why Hitting Your Server by IP Returns 400 — Testing a New Production Server on the Real Domain Before the DNS Switch
The problem On a recent server migration, the requirement was clear: "the DNS change goes last — everything must be verified on the new server before that." Reasonable.