• Resolved gsaid

    (@gsaid)


    How does Certbot(Let’s Encrypt) manage this domain within the same virtual domain?

    Example:
    If I have a site called exemple.com which contains SSL installed via certbot, and I use this plugin for another page called moreexemple.com. How do I install SSL for this second domain (moreexemple.com) ?

    Because both sites are using the same directory “/etc/nginx/sites-available/exemple.com” and “/etc/nginx/sites-enabled/exemple.com”.

    Thanks!!!

    • This topic was modified 1 year, 10 months ago by gsaid.
    • This topic was modified 1 year, 10 months ago by gsaid.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Joeri van Veen

    (@ruigehond)

    Hi gsaid, the certbot program creates its own (shortlived) virtual servers during validation afaik, only for validating that the domain belongs to you (with the .well-known acme challenge), independent of your own setup.

    You should be able to create virtual servers for each domain separately, using their appropriate certificate, but pointing at the same location (/etc/nginx/site-enabled/exemple.com) I think, this is how I have it setup using Apache. This all worked out of the box for me way back when. Please let me know if this does not work for you using nginx, so I can dig a little deeper for you.

    Plugin Author Joeri van Veen

    (@ruigehond)

    While I was ssh-ing to my server I checked my setup, and indeed, I have a virtual server for each domain, each using their own certificate, but pointing all to the same location, where my WordPress resides.
    The certbot auto renew works fine, I did not have to provide any special instructions. I will mark this thread as closed because I think your question is answered, but do not hesitate to open a new thread if you find the answer unsatisfactory.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Install SSL’ is closed to new replies.