serverpilot-letsencrypt icon indicating copy to clipboard operation
serverpilot-letsencrypt copied to clipboard

Add extra subdomains

Open bartrylant opened this issue 7 years ago • 6 comments

Is it possible to add extra subdomains later?

bartrylant avatar Mar 21 '18 09:03 bartrylant

Yes, it is possible.

Just do the same as adding a new site.

Let's Encrypt will detect that the site already exists and ask if you just want to update.

pedrorodbit avatar Mar 21 '18 09:03 pedrorodbit

But you have to include all the domains you've added before again, right?

bartrylant avatar Mar 21 '18 09:03 bartrylant

Yes, you have to include all domains and subdomains.

pedrorodbit avatar Mar 21 '18 09:03 pedrorodbit

Is there the capability of adding new domains for different serverpilot apps on the same server?

For instance, I have 3 websites with a few different domain names for each all on the same server managed by serverpilot. For one of the sites (with 4 other domain names), I ran your script and it worked perfectly.

Now, I'm wanting to add SSL to the other two websites (different apps) that have two different sets of domain names. Can I just run the script again twice for each of these? Or do I need to run it once and include every domain name on the server, regardless of which app/website it's for?

justinbowers avatar Mar 22 '18 21:03 justinbowers

@justinbowers

You need to run the script for each domains (ex: domain.com) and include all subdomains (ex: subdomain1.domain.com subdomain2.domain.com ...).

It would look like this on the command line: domain.com subdomain1.domain.com subdomain2.domain.com ...

If you then need to add SSL to other domains, you repeat the same process.

pedrorodbit avatar Mar 23 '18 19:03 pedrorodbit

@pedrorodbit Thanks for the reply. That's what I did with the first site on the server. I just didn't know if it would remove the existing config if I ran it again for the other sites.

justinbowers avatar Mar 23 '18 20:03 justinbowers