--letsencrypt for domain without "Site"


#1

i have a Site /var/www/domain1.com/htdocs with secondary pointing domain: domain2.com.

server_name 11.11.111.150 domain1.com www.domain1.com domain2.com www.domain2.com;

Are there any ways to --letsencrypt domain2.com?

im getting expected error : sudo ee site update domain2.com --letsencrypt Site domain2.com does not exist.

PS i’m also created a separate records for domain2.com at /etc/nginx/sites-available/domain2.com /etc/nginx/sites-enabled /domain2.com


#2

If you have customized your nginx vhost, EasyEngine will not be able to detect another domain because you haven’t use the command :

ee site create domain2.com

But it may be better to create another vhost for domain2.com, because I do not think your website use two domain at the same time ?


#3