Configure blogs for different domains with different SSL certificates
This section assumes:
- You have a working WordPress Multisite installation
- Your server has a static IP address
- You are able to log in to your server console using a tool like PuTTY (Windows) or SSH (Linux and Mac OS X)
- You own at least one custom domain name for which you can configure DNS settings
- You have defined your primary domain and blog as described here and you are able to log in to the WordPress Multisite dashboard.
- You have added one or more WordPress Multisite blogs with different domains as described here .
In order to set different SSL certificates for each new domain, configure each domain as a virtual host. Edit the /opt/bitnami/apps/wordpress/conf/httpd-vhosts.conf file and add a new virtual host for each new domain. The following code could be taken as an example:
<VirtualHost *:80>
ServerName yourserverdomain.com
ServerAlias *.yourserverdomain.com
DocumentRoot "/opt/bitnami/apps/wordpress/htdocs"
Include "/opt/bitnami/apps/wordpress/conf/httpd-app.conf"
</VirtualHost>
<VirtualHost *:443>
ServerName yourserverdomain.com
ServerAlias *.yourserverdomain.com
DocumentRoot "/opt/bitnami/apps/wordpress/htdocs"
SSLEngine on
SSLCertificateFile "/opt/bitnami/apps/wordpress/conf/certs/new_server.crt"
SSLCertificateKeyFile "/opt/bitnami/apps/wordpress/conf/certs/new_server.key"
Include "/opt/bitnami/apps/wordpress/conf/httpd-app.conf"
</VirtualHost>
Remember to change the ServerName and ServerAlias directives to the correct values.
To specify a different SSL certificate for each domain, update the paths to the corresponding certificate files in the *SSLCertificateFile *and SSLCertificateKeyFile directives.