HTTP - Virtual Host (or Vanity hostnames)


Virtual hosting is a method for hosting multiple DNS name from the same web server on a computer using a single IP address.

Most configurations use only name-based virtual hosts so the server doesn't need to worry about IP addresses.

Implementation and Routing

Virtual host actually determine a host value to be used as ip name as a piece of routing information.

The implementation takes place:

The algorithm (as explained in section 5.2) is:

and if the host is not a valid host on the server, the response MUST be a 400 (Bad Request) error message.

Documentation / Reference

Powered by ComboStrap