nativeInstallerprocesswire

Configure multiple SSL domains on the same IP address

Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and Mac OS X) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). Learn more.

There is an extension to the SSL protocol called “Server Name Indication”. It allows you to use only one IP address for several SSL-protected sites. The only drawback is that some older web browsers do not support it. The example Apache configuration is shown below:

NameVirtualHost *:80

<VirtualHost *:80>
ServerName my-wordpress.example.com
DocumentRoot "installdir/apps/wordpress/htdocs"
</VirtualHost>
<VirtualHost *:80>
ServerName my-sugarcrm.example.com
DocumentRoot "installdir/apps/sugarcrm/htdocs"
</VirtualHost>

Listen 443
NameVirtualHost *:443

<VirtualHost *:443>
SSLEngine on
DocumentRoot "installdir/apps/wordpress/htdocs"
ServerName my-wordpress.example.com
SSLCertificateFile "installdir/apache2/conf/my-wordpress.crt"
SSLCertificateKeyFile "installdir/apache2/conf/my-wordpress.key"
</VIrtualHost>

<VirtualHost *:443>
SSLEngine on
DocumentRoot "installdir/apps/sugarcrm/htdocs"
ServerName my-sugarcrm.example.com
SSLCertificateFile "installdir/apache2/conf/my-sugarcrm.crt"
SSLCertificateKeyFile "installdir/apache2/conf/my-sugarcrm.key"
</VirtualHost>

You can learn more at the following pages: