Interview Prep/Networking/HTTP, TLS & Certificates

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.

All Networking questions Roadmap: Networking for DevOps

More on HTTP, TLS & Certificates