1.<vituralhost><vituralhost/>, this directive encloses/contains a group of directives and only apply to a paticular vitural host. Syntax: <VirtualHost addr[:port] [addr[:port]] ...> ... </VirtualHost> Available values for addr can be: (1)IP address for virtual host (2)full quailfied domain name for IP address(deprecated) (3)*,used only in combination with NameVirtualHost * to match all IP address (4)_default_,catch unmatched address
Annotation: what is virtual host? Virtual host is a term, it is used to describe the practice of running more than one web site on a single machine. Virtual can be based on ip which means each web site has its own address, or domain name which means there have multiple names for each ip.
A typical example for name-based virtual host in HTTP server can be configured like this: current IP has already been used to match www.yourdomain.itb, but still can be used to match another virture machine:www.otherdomain.itb.
several frequently used directives for apache server
1., this directive encloses/contains a group of directives and only apply to a paticular vitural host.Syntax: ... Available values for addr can be:(1)IP address for virtual host(2)full quailfied doma