Host multiple secure websites on Apache
On a corporate network, it may be necessary to have multiple secure websites being served from a single Apache server, on a single IPInternet protocol address. Previously, attempting to host multiple secure sites on a single IP address would cause certificate requests to be perceived as man-in-the-middle attacks, and the connections would be refused.
Configure the websites served up from Apache to include the SNI extension in the connection requests.
Only Apache 2.2.12 and later and OpenSSL 0.9.8j and later have support for Server Name Indication (SNI).
SNI is not supported on Internet Explorer running on Windows XP.
- Create all the secured sites on the Apache server.
- Copy the certificate files for the secure sites onto the Apache server. Put the certificate files in the same location as the other certificates on the server. The certificates should be readable by the web server process only.
- Enable SSL on Apache
- Specify the ports referenced by the virtual hosts
- Add a <VirtualHost> block for each secure site on the server
- Verify the secure server configuration
- Managing Certificates and CA Certificates
- Configure SSL Acceleration Servers