• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 112
  • Last Modified:

Multiple SSL's on Wordpress MultiSite

I have an AWS EC2 instance running Amazon Linux running Wordpress MultiSite. I'd like the sites in the Network to be able to resolve to HTTPS.

What's the best way to install multiple SSL's on a single Wordpress Server? Is is possible to list multiple SSL's in the ssl.conf file?

Thanks for your help.
0
Tessando
Asked:
Tessando
  • 2
2 Solutions
 
shalomcCTOCommented:
There are 2 ways to achieve this, and it depends on the way the multiple sites are configured.
The simpler way, and I assume that this is what you mean by WP multisite, is to install a SAN certificate.
A SAN cerificate is a TLS/SSL certificate with multiple domain support.
Comodo SAN
Link to Godaddy SAN

The more complex way is to be used when a single Apache server has multiple installations of WP. It makes sense when the sites are managed independently and have nothing in common.
In this case, your server will have separate virtual hostname configurations, Apache must be configured for SNI, and each virtual host can be supplied with its own certificate.
0
 
TessandoIT AdministratorAuthor Commented:
I don't think a SAN certificate is an option, just because sites for this server are going to come and go.

I'm sorta new to WordPress MultiSite and I believe the idea is that there is one core WordPress installation but it's shared between different sites (meaning the domain name, plugins, themes, etc.).

That said, a more appropriate question would be: where can I add SSL's on the server for each virtual site in WordPress multisite?
0
 
shalomcCTOCommented:
If you use WP Multisite, then there is only 1 virtual host in Apache, and you must use a SAN.
The multisite means that wordpress looks at the host header and decides which content to serve.
The  "routing" is done by Wordpress, and apache just invokes a single copy of WP.

If SAN is not an option, then you must have multiple copies of the Wordpress files, and multiple WP databases. You can use the WP prefix option to make the different WP installations work with the same physical table space. Each WP installation will then have its own Apache virtual host.
I think that SAN may be an easier way to manage this complexity :)

In wp_config.php each copy of wordpress will have a different line
$table_prefix  = 'wp_sitename_';

Open in new window


Apache configuration for multiple domains with SSL:
NameVirtualHost *:443

<VirtualHost *:443>
 ServerName www.sitea.com
 DocumentRoot /var/www/sitea
 SSLEngine on
 SSLCertificateFile /path/to/www_sitea_com.crt
 SSLCertificateKeyFile /path/to/www_your_private.key
 SSLCertificateChainFile /path/to/CA-bundle.crt
</VirtualHost>

<VirtualHost *:443>
 ServerName www.siteb.com
 DocumentRoot /var/www/siteb
 SSLEngine on
 SSLCertificateFile /path/to/www_siteb_com.crt
 SSLCertificateKeyFile /path/to/www_your_private.key
 SSLCertificateChainFile /path/to/CA-bundle.crt
</VirtualHost>

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now