Page 1 of 1

letsencrypt Broke my Vesta hosted websites

Posted: Thu Apr 30, 2020 3:46 pm
by shyboy
so vesta was running fine, but my ssl certs expired.
I was so stupid to run letsencrypt-auto for both nginx and apache2.

now there is a conflict that when I go to server option the GUI, apache2 stopped and nginx running.
somehow there is a port conflict which causing one to crash.

I dig down in conf files but couldn't figure it out, all my virtual hosts are down as well.
I tried restoring it from yesterday's but that didnt' help, I guess the restore doesn't bring the old conf files back.

any help would be appreciated.

thanks,

Re: letsencrypt Broke my Vesta hosted websites

Posted: Thu Apr 30, 2020 5:40 pm
by shyboy
so now i disabled the proxy support and hosted sites are back and accessible.

But when I turn the proxy support on, it throw an error saying failed to restart nginx

Re: letsencrypt Broke my Vesta hosted websites

Posted: Thu Apr 30, 2020 5:53 pm
by shyboy
the problem is if I turn the proxy on, then nginx unable to start.

if I stop apache2 and then start ngnix, it works. but then I can't turn on the apache2

Re: letsencrypt Broke my Vesta hosted websites

Posted: Thu Apr 30, 2020 10:43 pm
by shyboy
following is the my error in nginx

Code: Select all

2020/04/30 18:39:46 [warn] 29142#29142: the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /home/admin/conf/web/domain.com.nginx.ssl.conf:4

2020/04/30 18:39:46 [emerg] 29142#29142: bind() to 162.x.x.x:443 failed (98: Address already in use)

Re: letsencrypt Broke my Vesta hosted websites

Posted: Thu Apr 30, 2020 11:00 pm
by shyboy
viewtopic.php?t=13419

the above helped.