Virtual hosting is the capability of a single system to server multiple web domain addresses. For example a single server could respond to requests for www.acme.com and www.coyote.com. This is clearly useful for public web sites, but virtual hosting is also an excellent technology to manage separate content for a single domain. For example: the administration interface and the user interfaces can be implemented as separate virtual hosts.
Configuration DirectivesVirtual hosts are created by grouping configuration file directives within a VirtualHost directive block. Directives within the block apply only to the virtual host.
Before declaring a VirtualHost directive for name-based virtual hosting, you must use a NameVirtualHost directive. This specifies that the given IP address will use name-base hosting. Name-base Virtual HostsName-based virtual hosts allow multiple virtual hosts to share an IP address by using the Host HTTP header to distinguish which virtual host should service the request.NOTE: Name-based virtual hosting cannot be used with the SSL protocol. You must use IP-based hosting. Example
|
Quick Nav
Configuration Directives |