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

SSL renewal keeps resetting custom DocumentRoot (nginx+apache2) Topic is solved

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
Digimush
Posts: 1
Joined: Thu Dec 06, 2018 10:42 am

Os: Ubuntu 15x
Web: apache + nginx
SSL renewal keeps resetting custom DocumentRoot (nginx+apache2)
  • Quote

Post by Digimush » Thu Dec 06, 2018 1:52 pm

I have a server(Ubuntu 16.04 LTS) with VestaCP (0.9.8-23) and nginx+apache setup. I use laravel for my app and my DocumentRoot looks like this "/home/admin/web/domain.xx/pubcli_html/public" (in apache2 conf) and I use LetsEncrypt for SSL.

My problem is that when LetsEncrypts updates SSL cert it refreshes DocumentRoot in apache config for that domain to "/home/admin/web/domain.xx/pubcli_html". I googled before posting here and was unable to find a solution to my problem, so any help will be appreciated.
Top

plutocrat
Posts: 232
Joined: Fri Jan 27, 2017 9:16 am

Os: Ubuntu 17x
Web: apache + nginx
Re: SSL renewal keeps resetting custom DocumentRoot (nginx+apache2)
  • Quote

Post by plutocrat » Mon Dec 10, 2018 4:41 am

I think your best bet would be to create a new template for laravel sites, so that when the site is regenerated it will provide the correct path. Brief instructions:

Look in here:
/usr/local/vesta/data/templates/web/apache2/

Copy the default.tpl and default.stpl to laravel.tpl and laravel.stpl
Edit those files to have the correct path.

Back in the admin area, select that template for your laravel site.
Top


Post Reply
  • Print view

2 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