DEV Community

Discussion on: Everything you need to know about DNS as a web developer

Collapse
 
ferricoxide profile image
Thomas H Jones II

Small quibble on the assertion:

This decision is based on the Host HTTP header the client must send,

Even on a server configured to serve up multiple sites bound to a single IP, whether a client needs to send the Host HTTP header depends on the HTTP server's configuration (and the content the client wishes to receive). If I have an HTTP daemon configured with a default site with named virtuals piled on top, I only need to specify the Host HTTP header in my request if I want content from one of the piled-on virtuals. Absent the Host HTTP header, the default-site's content will get served out.