1. Two virtual host ways.
1, Name-based: client tell the name, server use name to dispatch request to different translation
2. IP-based: server different in IP address or port
IP based / Name-based virtual host 可混合
先IP based resolution, 在name-based resolution
main server: 当无相应的virtual server时使用的server
A virtual host is defined by two pieces of information: its IP address, and the contents of the Host:
header in the HTTP request
mod_vhost_alias
or mod_rewrite can be used to do dynamically virtual hosting