By kvny
So, I have a multisite wordpress with two domains, I installed a SSL certificate on the second domain, but doesn’t seem to work, how can I make this work?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @kvny,
You’ll need to update your WebService’s config file (Apache/Nginx) to include the SSL you’ve installed. Can you let us know which of the two mentioned you are using so that I can provide you with more information on how to reach/find where to update the config files?
If you are unsure how to check which one you are using, you can enter your droplet via SSH and type in the following command:
netstat -tulpen | grep 80
It should display what service is listening on port 80, either Apache or Nginx. From there you can enter your configuration file and add your SSL bit to it.
Regards, KFSys
It’s relatively easy to get certbot going to create and install the certificate, but the problem is that you can’t create multiple sites configs in Apache and then let certbot create a certificate for them all, since the forwarding that will be set up, conflicts with the forwarding done in Wordpress by the domain mapping plugin. So here’s how I got going.
For the single site config in Apache (the main network site in Wordpress), create a certificate, but specify all the domains to be added to the certificate by using the -domain option and add each domain in the wordpress network of sites.
certbot --apache --domains new.domain.com --domains second.com --domains yetanotherone.net
Now the certificate will validate all the domains in the network site.
If you add more domains, just rerun the certbot command
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.