I have a website with 2 domain names. 1. name.org 2. server.university.edu/name

I have a wildcard cert to cover server.university.edu/name. If I get one from say, letsencryp.org, I'm not sure how to use both for one website.

I'm using: RHEL 8, Apache2.4, PHP 7.2

Do I need to create 2 vhosts and point the docroot to the same location or can I put mutilple certs into a single vhost? Or is there another better way to handle this?


You have to use two vhosts and point them to the same document root or redirect one of them to the other url.

Letsencrypt allows you to have multiple domains in a single cert - if this is an option for you, you can use that with a single vhost.

But for flexibility I would prefer the first option...

  • Thank you for the information. I think I prefer the first option also.
    – Mike
    Mar 6 '20 at 19:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.