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

Custom nginx template doesn't work

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
jurchello
Posts: 4
Joined: Wed Jun 13, 2018 11:27 am

Os: Debian 8x
Web: nginx + php-fpm
Custom nginx template doesn't work
  • Quote

Post by jurchello » Wed Jun 13, 2018 12:57 pm

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:
  • 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
Rebuild vestacp and checked my configs here /home/admin/conf/web/
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?
Top

usr999
Posts: 78
Joined: Sat Jul 25, 2015 3:37 pm

Re: Custom nginx template doesn't work
  • Quote

Post by usr999 » Thu Jun 21, 2018 11:31 am

Try in /usr/local/vesta/data/templates/web/php-fpm/
Top

Fleuv
Posts: 18
Joined: Thu May 28, 2015 4:27 pm

Os: Ubuntu 17x
Web: nginx + php-fpm
Re: Custom nginx template doesn't work
  • Quote

Post by Fleuv » Wed Feb 13, 2019 7:34 am

usr999 wrote: ↑
Thu Jun 21, 2018 11:31 am
Try in /usr/local/vesta/data/templates/web/php-fpm/
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/
Top

Miguel
Posts: 1
Joined: Tue Jan 26, 2021 12:02 pm

Os: Debian 8x
Web: apache + nginx
Re: Custom nginx template doesn't work
  • Quote

Post by Miguel » Tue Jan 26, 2021 12:11 pm

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
Top


Post Reply
  • Print view

4 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