Previous Topic: Handling Redirects by Destination Servers

Next Topic: Override Default Values for Virtual Hosts

Virtual Host Names Configuration

For the SPS to act as a virtual host for one or more host names, configure a <VirtualHost> element for related hostnames and IP addresses. Each server.conf file must contain one <VirtualHost> element for the default virtual host, in addition to additional elements for hostnames at other IP addresses.

The following is an example of a <VirtualHost> element for the default virtual host in a server.conf file.

# Default Virtual Host
<VirtualHost name="default">
hostnames="home, home.company.com"
addresses="123.123.12.12"
</VirtualHost>

The default virtual host in the preceding example is the host named home.company.com residing at IP address 123.123.12.12. You can add hostnames that resolve as the default virtual host by adding to the comma-separated list of values in the hostnames. To add additional virtual hosts to the proxy configuration, add additional <VirtualHost> elements that include hostname directives for the additional virtual hosts.

Example:

To add a sales virtual host for the server, sales.company.com virtual host, add the following element:

<VirtualHost name="sales">
hostnames="sales, sales.company.com"
</VirtualHost>