Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Vesta letsencrypt cert update broke nginx.ssl config

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
myrecs
Posts: 1
Joined: Fri Mar 02, 2018 9:37 am

Os: Ubuntu 15x
Web: nginx + php-fpm
Vesta letsencrypt cert update broke nginx.ssl config
  • Quote

Post by myrecs » Fri Mar 02, 2018 9:46 am

After cron job for letsencrypt updating my ssl nginx conf was totally broken. most part of config dissappeared, it seems like it was backed to original state but with some syntax mistakes. (was missing ";" in some part of code). Is it some problem with regexp in vesta script? And why when cert is being renewed nginx conf files are touched? Shouldn't only cert files be updated?
Top

Felix
Posts: 134
Joined: Tue Aug 04, 2015 7:15 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: Vesta letsencrypt cert update broke nginx.ssl config
  • Quote

Post by Felix » Sun Mar 04, 2018 12:08 pm

Maybe related to this one?
viewtopic.php?f=11&t=15740
and/or this one?
viewtopic.php?f=11&t=14851
Top

x-loading
Posts: 1
Joined: Mon Jul 16, 2018 6:26 am

Os: CentOS 6x
Web: apache + nginx
Re: Vesta letsencrypt cert update broke nginx.ssl config
  • Quote

Post by x-loading » Mon Jul 16, 2018 6:34 am

Faced absolutely the same issue couple of days ago after updating Vesta to 0.9.8-22.
My nginx and apache configs were split by domains.
My hard times were doubled by the fact that Vesta backup for some reason does not back up domain-specific configs (domain.com.nginx.ssl.conf and domain.com.httpd.ssl.conf) and I had to restore them from scratch.

I have disabled v-update-letsencrypt-ssl Cron job but what to do further?
How can this issue be avoided further and how to make backup consider domain configs?

Had no such problems with 0.9.8-20 by the way.
Top

ScIT
Support team
Posts: 617
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: Vesta letsencrypt cert update broke nginx.ssl config
  • Quote

Post by ScIT » Tue Jul 17, 2018 1:50 pm

x-loading wrote: ↑
Mon Jul 16, 2018 6:34 am
Faced absolutely the same issue couple of days ago after updating Vesta to 0.9.8-22.
R21 and R22 were only security fixes, I think there was let's encrypt affected change.
x-loading wrote: ↑
Mon Jul 16, 2018 6:34 am
My nginx and apache configs were split by domains.
My hard times were doubled by the fact that Vesta backup for some reason does not back up domain-specific configs (domain.com.nginx.ssl.conf and domain.com.httpd.ssl.conf) and I had to restore them from scratch.
Do NOT edit directly the conf files inside of /home/user/conf directory, they are not premanent. If you need to change something create a new template in /usr/local/vesta/data/templates/web/.
x-loading wrote: ↑
Mon Jul 16, 2018 6:34 am
I have disabled v-update-letsencrypt-ssl Cron job but what to do further?
Check your teamplates, enable the cronjob again and maybe create new ssl certs (untick ssl -> save, tick ssl+let's encrypt -> save).
x-loading wrote: ↑
Mon Jul 16, 2018 6:34 am
How can this issue be avoided further and how to make backup consider domain configs?
Don't change the conf files, create new templates.
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password