Activating Proxy Template “wordpress.tpl” I found two issues, google does not helps.
sudo /usr/local/hestia/bin/v-add-fastcgi-cache admin domain.com 30m yes yes
Error: nginx is in proxy mode
Why? nginx is in php-fpm mode via socket for this domain
instruction
include /home/admin/conf/web/domain.com/nginx.fastcgi_cache.conf*;
has no file to include
Are there some template/ example of this nginx.fastcgi_cache.conf ?
The code checks if Nginx+PHP-FPM is active for the whole server or not.
If so the option is available for rebuild, restore and edit web. If not the software doesn’t under stand it yet. Changing this behaviour would requiring a complete rewrite of Hestia and it yet not in the planning.
If you check the code for v-add-fastcgi-cache you are able to see the template used.
The code checks if Nginx+PHP-FPM is active for the whole server or not.
Ok, so I just made changes for every website on this machine like that Screenshot by Lightshot
Or I should activate it somewhere else?
But just wonder if there is a way to make it globally or not?
BTW I already check the file you point me to. The line
if [ “$WEB_SYSTEM” != ‘nginx’ ]; then
contents variable $WEB_SYSTEM, but echo $WEB_SYSTEM shows empty. A bit strange…
In the file /etc/nginx/conf.d/fastcgi_cache_pool.conf we see inactive=10m; parameter for every domain.
Is there a way to change this globally for all the old and new domains via panel or via some config file?
Or even delete “inactive=10m” at all.
Exactly. So for low traffic webs its important to keep a cached version, so I always re-generate cache every 6 h using “heating” script, so I set inactive=400m
But you should never update an “hestia” supplied template as they will get overwritten after next update
See the Headers
#=========================================================================#
# Default Web Domain Template #
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
# https://docs.hestiacp.com/admin_docs/web.html#how-do-web-templates-work #
#=========================================================================#