Page 1 of 1

Let's encrypt Error code: 2.

Posted: Thu Jun 01, 2017 9:55 am
by Dimetrius
I have several websites on my vesta server.
For one of my domain (we call it domain1.com), I have installed SSL Let's Encrypt successfully. Just click needed options and ssl works.
When I start doing the same for my second domain (lets call it domain2.com) I'm getting error: Error code: 2
After this I see strange behavior: when I go https://domain2.com I see the first website (domain1.com) is opened there.

Could you please, explain what I'm doing wrong?

Re: Let's encrypt Error code: 2.

Posted: Fri Jun 02, 2017 4:47 pm
by cottager
If you get an error trying to set up ssl on a domain, I believe you'll get the first website in the nginx config that it has for a valid https site. (don't quote me, maybe I dreamed this.) Do you see the correct domain when you go there without the s? (http://domain2)

Solve the SSL problem for domain2 and you should get the right domain when you https to it.