Page 1 of 1

[SOLVED] nginx caching template fails with Let's Encrypt SSL

Posted: Mon Oct 22, 2018 11:57 am
by jcerdan
Hi,

When trying to configure the caching template from nginx with a domain under SSL LE, nginx makes 301 loop redirections.
I have modified /usr/local/vesta/data/templates/web/nginx/caching.sh to solve the problem of duplicate lines in /var/cache/nginx/$domain
and also modified this https://github.com/serghey-rodin/vesta/issues/1233
but stills, redirects 301 exist and there's no way to put a site under nginx caching template and SSL Let's Enrcypt.

Has someone had success with that config?

Re: nginx caching template fails with Let's Encrypt SSL

Posted: Mon Oct 22, 2018 2:09 pm
by jcerdan
Hi,

Solved this doing exactly both things indicated... don't know what was wrong before. So, for next people trying to find the problem:

1) modifiy /usr/local/vesta/data/templates/web/nginx/caching.sh to solve the problem of duplicate lines in /var/cache/nginx/$domain
2) https://github.com/serghey-rodin/vesta/issues/1233

This has to be done at least in Ubuntu 16.04 and VestaCP 0.9.8-23

Regards