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.
TessandoIT AdministratorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Shalom CarmelCTOCommented:
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
Shalom CarmelCTOCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.