Problems with nginx templates location

  • Your Hestia version: 1.9.3
  • Operating System: Ubuntu 24.04 LTS
  • Web server setup (Nginx + PHP-FPM, Apache disabled)
  • Proxy mode disabled
  • The exact behavior: the “Web Template NGINX” dropdown (name=“v_template”) shows contents of nginx/php-fpm/ instead of nginx/.
  • Confirm that Nginx config generation works correctly after modifying the default templates.

I am trying to set up a “Nginx + PHP-FPM, Apache disabled” system. However, in the /edit/web/?domain=example.com&token=12312312321, under “Advanced Options” in the “Web Template NGINX” selector, I am only able to see the templates from /usr/local/hestia/data/templates/web/nginx/php-fpm and not the ones from /usr/local/hestia/data/templates/web/nginx/.

In /usr/local/hestia/data/templates/web/nginx/ I have created a custom template for HTTP3 that I want to use (http3.tpl and http3.stpl) and I am not able to see it in the selector.

Also, I needed to modify manually the default.tpl and default.stpl files in /usr/local/hestia/data/templates/web/nginx/ because these original files were though as if Nginx was used as a Proxy. I want a pure Nginx + PHP-FPM setup using my templates, without involving Apache or Hestia’s specific “Nginx Proxy Mode” which populates the %proxy_*% variables. Without doing this modification, when I was adding a domain I was getting an error in nginx restart.

Please advise how to solve this issue.

Then the right dir to put your templates is /usr/local/hestia/data/templates/web/nginx/php-fpm/

1 Like