Multiple certs for multiple websites on one server?


#1

Let me explain.
I have 2 websites running on my one server (Apache 18.04 LTS).
The sites are also in different directories.
Example:
site1.com has a directory of /var/www/site1/
site2.com has a directory of /var/www/site2/

I want each site to have a different cert.
Example:
site1.com has a cert for site1.com
site2.com has a cert for site2.com

What command do I do to achieve this?

Any help will be appreciated :slight_smile:


#2

Probably:

certbot --apache -d site1.com -d www.site1.com

and

certbot --apache -d site2.com -d www.site2.com

The Apache plugin will deal with figuring out the web roots and everything for you.


closed #3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.