Skip to content
This repository has been archived by the owner on Jan 16, 2020. It is now read-only.

Add extra subdomains #68

Open
bartrylant opened this issue Mar 21, 2018 · 6 comments
Open

Add extra subdomains #68

bartrylant opened this issue Mar 21, 2018 · 6 comments

Comments

@bartrylant
Copy link

Is it possible to add extra subdomains later?

@pedrorodbit
Copy link

pedrorodbit commented Mar 21, 2018

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.

@bartrylant
Copy link
Author

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

@pedrorodbit
Copy link

Yes, you have to include all domains and subdomains.

@justinbowers
Copy link

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?

@pedrorodbit
Copy link

@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.

@justinbowers
Copy link

@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants