Page 1 of 1

SSL renewal keeps resetting custom DocumentRoot (nginx+apache2)

Posted: Thu Dec 06, 2018 1:52 pm
by Digimush
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.

Re: SSL renewal keeps resetting custom DocumentRoot (nginx+apache2)

Posted: Mon Dec 10, 2018 4:41 am
by plutocrat
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:

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.