What does the Host header do?
BeginnerConceptHTTP, TLS & Certificates
Answer
It tells the server which virtual host or domain the request is for, enabling many sites on one IP (name-based virtual hosting). In HTTP/2 the equivalent is the :authority pseudo-header.
Testing by IP: curl -H "Host: app.example.com" http://203.0.113.10/. Routing in ingress controllers and ALB rules depends on it.
More on HTTP, TLS & Certificates
What is the structure of an HTTP request and response?BeginnerWhich HTTP status code classes and codes should every DevOps engineer know?BeginnerWhat are the common HTTP methods and which are idempotent?BeginnerWhat changed between HTTP/1.1, HTTP/2 and HTTP/3?IntermediateHow does QUIC differ from TCP+TLS?AdvancedWhat are HTTP keep-alive and connection reuse, and why do they matter?Advanced