Virtual Hosting

Virtual hosting presents a challenging situation in conjunction with SSL. Consider the following HTTP request:

GET / HTTP/1.1 
Host: httphandbook.org 

If a Web server receiving this request serves many domains using the same IP address, it can still choose the correct host, because it can parse the Host header to determine which host is being contacted. However, consider the same request using SSL. Prior to receiving the encrypted HTTP request, the Web server must negotiate the SSL handshake with the client. Part of this process requires the Web server to present the SSL certificate to be used in the public key cryptography. How can the Web server choose the correct SSL certificate for httphandbook.org if it has not yet received ...

Get HTTP Developer’s Handbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.