We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on Vesta 2.0 and expect to release it by the end of 2024. Read more about it: https://vestacp.com/docs/vesta-2-development
Can't get Nginx templates to work
Can't get Nginx templates to work
I've tried following the documentation to add a template for force https, but there is no where under web or packages to select the force-https template. Yes, I restarted nginx and the server several times.
I don't see any drop down menu for any of these templates in Vesta CP anywhere. New install, nginx + php-fpm.
I don't see any drop down menu for any of these templates in Vesta CP anywhere. New install, nginx + php-fpm.
Re: Can't get Nginx templates to work
Code: Select all
service vesta restart
Re: Can't get Nginx templates to work
Yes, restarted vesta several times.
It looks like it's showing templates form the nginx/php-fpm directory above and not the nginx/ directory now that I look at it.
It looks like it's showing templates form the nginx/php-fpm directory above and not the nginx/ directory now that I look at it.
Re: Can't get Nginx templates to work
Hmm, interesting. I don't have a "Proxy Supprot NGINX" section. I have a "Web Template NGINX" and "Backend Template PHP-FPM" section. Using Vesta v0.9.8-17.
I have found though, I can modify templates in the /usr/local/vesta/data/templates/web/nginx/php-fpm/ directory and select them from the "Web Template NGINX" section.
The "Backend Template PHP-FPM" section remains a mystery of where that comes from or what its function is. I see default, no-php, and socket as dropdown options.
I have found though, I can modify templates in the /usr/local/vesta/data/templates/web/nginx/php-fpm/ directory and select them from the "Web Template NGINX" section.
The "Backend Template PHP-FPM" section remains a mystery of where that comes from or what its function is. I see default, no-php, and socket as dropdown options.
Re: Can't get Nginx templates to work
Hi everyone
I have the same problem.
my server VestaCP version is 0.9.8-19 and I install it with Nginx + PHP-fpm.
i don't have the 'Proxy Support Nginx' section too and all the files in the /usr/local/vesta/data/templates/web/nginx/php-fpm/ are listed in the "Web Template NGINX" section.
I have the same problem.
my server VestaCP version is 0.9.8-19 and I install it with Nginx + PHP-fpm.
i don't have the 'Proxy Support Nginx' section too and all the files in the /usr/local/vesta/data/templates/web/nginx/php-fpm/ are listed in the "Web Template NGINX" section.
Re: Can't get Nginx templates to work
With PHP-FPM, the templates are sourced from this floder /usr/local/vesta/data/templates/web/nginx/php-fpm/ Am using CENTOS 7.x on Vesta Release 0.9.8-26. I found a working solution.
Please copy the files from:
to:
then restart vesta:
Please copy the files from:
Code: Select all
https://github.com/cybersholt/VestaCP-Nginx-Force-SSL
Code: Select all
/usr/local/vesta/data/templates/web/nginx/php-fpm/
Code: Select all
service vesta restart