We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Custom nginx template doesn't work
Custom nginx template doesn't work
Where are located nginx templates which are located here /home/admin/conf/web/... ?
I added comments to all the templates here /usr/local/vesta/data/templates/web/nginx. The list of templates:
I've not seen comments inside the configs.
Also I created own template here /usr/local/vesta/data/templates/web/nginx (as a copy of default) and included it into webpanel for one of the domains. Rebuild. The same - new template doesn'r work.
Also my configs don't match to any of the templates (checked all of them). Where the proper templates are located?
I added comments to all the templates here /usr/local/vesta/data/templates/web/nginx. The list of templates:
- caching.sh
caching.stpl
caching.tpl
default.stpl
default.tpl
hosting.sh
hosting.stpl
hosting.tpl
http2.stpl
http2.tpl
php-fpm
proxy_ip.tpl
I've not seen comments inside the configs.
Also I created own template here /usr/local/vesta/data/templates/web/nginx (as a copy of default) and included it into webpanel for one of the domains. Rebuild. The same - new template doesn'r work.
Also my configs don't match to any of the templates (checked all of them). Where the proper templates are located?
Re: Custom nginx template doesn't work
Try in /usr/local/vesta/data/templates/web/php-fpm/
Re: Custom nginx template doesn't work
This directory is for PHP-FPM configs not for NGINX configs.
This is the directory the OP is looking for:
Code: Select all
/usr/local/vesta/data/templates/web/nginx/php-fpm/
Re: Custom nginx template doesn't work
Copy and modify file In /usr/local/vesta/data/templates/web/nginx/
The new file name just like "xxx_xxx.tpl" and "xxx_xxx.stpl", don't use "xxx.xxx.tpl" and "xxx.xxx.stpl" (Won't show your custome template name in vesta panel)
finally, restart vesta service by root or sudo: service vesta restart
The new file name just like "xxx_xxx.tpl" and "xxx_xxx.stpl", don't use "xxx.xxx.tpl" and "xxx.xxx.stpl" (Won't show your custome template name in vesta panel)
finally, restart vesta service by root or sudo: service vesta restart