Summary

  • Early HTTP could ask for / over a TCP connection, but the connection carried an address, not the DNS name the user had chosen.
  • HTTP/1.1 made Host mandatory so a server could drop one path into the right named namespace — and host many sites on a single IP address.
  • Because authority could arrive twice, in the request-target and in Host, the specifications had to pick a winner, define rewriting, and demand rejection of missing, duplicate or invalid values.

The server received an address and a slash

Picture the early Web. A browser resolves a name, opens a TCP connection to an address, and sends a request that often says little more than GET /. RFC 1945, which wrote down HTTP/1.0 as people actually used it, was relaxed about this. When one address meant one server, a bare slash was plenty: the connection itself had already picked the only root in town.

Then the arithmetic stopped working. DNS happily pointed a dozen names at one address, but the server never saw the client's DNS question. TCP hands over a connection to an address and a port — not the label the user typed or followed. The moment two sites shared that endpoint, / became a path with no namespace to belong to.

HTTP/1.1 put the name back in the message

In January 1997, RFC 2068 made Host a required HTTP/1.1 request field. A direct request to an origin would normally carry only path and query on the request line, while Host carried the URI's network location. The exact resource came from the two of them together.

The rule had teeth. Every Internet HTTP/1.1 request had to include Host, and a server had to answer 400 when it was missing. The specification's appendix called it one of the document's most important changes, and named the reason plainly: several Web sites on one IP address, and fewer addresses burned merely to tell special-purpose domain names apart.

Host did not make a name true. It made the client's intended authority explicit enough to route on. Whether that name was welcome on this server remained the origin's call.

One request could carry the name twice

Direct requests usually use origin-form — a path such as /pub/index. Requests through a proxy can use absolute-form, where the request-target already spells out scheme, host and path. If the absolute URI says one host while the Host field says another, honouring both hands two different recipients two different targets.

RFC 2068 settled it: in that case the absolute request-target wins. RFC 7230 later told a proxy receiving absolute-form to ignore the Host it received, replace it with the authority from the target, and forward. The intermediary's job is to turn two representations into one decision.

The same logic explains the blunt rejections. An HTTP/1.1 server must return 400 for a missing Host, for more than one Host field, or for an invalid value. Let the first, last or most convenient copy win, and proxy, cache and origin can quietly disagree about where the request was going.

A complete target is reconstructed, not read

RFC 7230 gave the result a name: the effective request URI. Depending on the form of the request, a recipient assembles it from server configuration, the connection's security context, the request-target and Host. The path is one ingredient. The authority decides which resource space gets to interpret it.

That assembly spreads power around. The user agent declares a target. A proxy normalises the form it forwards. The origin checks whether it serves that authority and picks a virtual host. A cache must key the response under the same target that routing used. A redirect generator must not invent an external name out of unvalidated input.

RFC 7230 warns specifically against trusting an unverified Host value for internal redirection or as a shared-cache key. The point is not that Host is decorative. It is that Host can move a request somewhere else while still being supplied by whoever sent it.

The field survived by becoming an invariant

Current HTTP/1.1 syntax in RFC 9112 keeps the contract: exactly one valid Host field, mandatory, even when the target authority is empty. No friendly heuristic is permitted to repair an ambiguous request.

HTTP/2 changed the packaging, not the need. RFC 9113 carries the target authority in :authority. When an intermediary builds an HTTP/1.1 request from it, it must use that value for Host — and replace any existing Host unless it is also changing the request target. Translation between protocols has to preserve one authority, not forward competing claims.

The historical change was tiny in syntax and enormous in governance. One mandatory name loosened the one-address-one-site assumption. It also made every intermediary downstream responsible for keeping that name singular and consistent.

Sources and limits

The closed set is RFC 1945, RFC 2068, RFC 7230, RFC 9112 and RFC 9113. It establishes protocol rules and motivation, not current virtual-host counts, addresses saved, browser share, product defaults or incident frequency. Host expresses request authority; it does not authenticate DNS ownership, TLS identity or the sender.