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

Steps to adding new domains

Open knynkwl opened this issue 8 years ago • 8 comments

Let's say I register example.com and I want to add example.org to the same app. What are the step required to doing that?

knynkwl avatar Aug 15 '16 22:08 knynkwl

Good question. I can add this to the script functionality.

For now, you have to remove the <appname>.ssl.conf file and re-run the script again.

lesaff avatar Aug 16 '16 00:08 lesaff

That would be sweet!

I literally had a client discussing "new subdomains" with me yesterday... this feature would help a lot.

lindseydiloreto avatar Aug 16 '16 21:08 lindseydiloreto

I deleted my <appname>.ssl.conf and rerun the script and added my other top domain urls example.com, example.net, example.info.

But when trying to surf to the the domains I added I get an SSL error. This server could not prove that it is example.net; its security certificate is from example.com.

martinstr avatar Nov 18 '16 08:11 martinstr

I'm also having this issue. My initial install (a few weeks ago) worked properly, but trying to create any additional certs end up causing an SSL error issue that can't be resolved until I delete the ssl.conf file I just created. This happens for all domains and subdomains >= 1.

Does not appear to throw any errors in creation however. Could be a server configuration issue?

jomurgel avatar Dec 02 '16 02:12 jomurgel

It could be a security risk running two different sites on the same app If you seriously need another domain just copy paste the PHP code into the new app and make them use the same database.

wilcoxm avatar Jan 09 '17 12:01 wilcoxm

@miwilc Which "PHP code" and "database" are you referring to? This Github repo is for a simple shell script.

Please elaborate on the perceived security risk... I don't see one.

lindseydiloreto avatar Jan 09 '17 18:01 lindseydiloreto

@lindseydiloreto I was mentioning that you can create a new app on serverpilot for your new domain/subdomain and copy all the files of the old app via SFTP/SSH to the new one, this should include the config files to use the MySQL database from the old app.

wilcoxm avatar Jan 11 '17 10:01 wilcoxm

Just wondering if this Gist would provide some help in getting this issue solved? I no server guru, so could be way off, but it seems to enable easy sub-domain additions.

onetrev avatar Sep 21 '17 02:09 onetrev