Defining SSL for multiple-IP virtual hosts

We can define different Secure Sockets Layer (SSL) options for various virtual hosts, or multiple servers running on one machine. In the configuration file, define each SSL directive in the stanza for the virtual host to which the directive applies. When you do not define an SSL directive on a virtual host, the server uses the directive default.


About this task

The default disables SSL for each virtual host. To enable SSL:


Procedure

  1. Specify the SSLEnable directive on the virtual host stanza in the configuration file, to enable SSL for a virtual host.

  2. Specify a Keyfile directive and any SSL directives you want enabled for that particular virtual host. We can specify any directive, except the cache directives inside a virtual host.

  3. Restart the server.