Permanent changing document root for all domains

Am trying to change the document root for all domains so that it is:


Instead of:


I hope someone on here can help.


Create a new template with the new docroot

@Eris, I did what you suggested yesterday in one of my other posts. The problem am having now is with the Proxy Template. I created /usr/local/hestia/data/templates/web/nginx/cake.tpl

But when trying to save I get this error message. Error: nginx restart failed

Am not sure what is wrong now.

Check nginx -t in command line after the template is activated…

I did that just now and it says this:

nginx: [emerg] “proxy_cache” zone “{{domain}}” is unknown in /etc/nginx/nginx.conf:161
nginx: configuration file /etc/nginx/nginx.conf test failed

I then checked the conf file seems fine as therere is brace (}) there.

I assume you are using caching template as basis?

Also copy the .sh file and give it the same name as the template name


Let me understand this correctly.

I copied




and made my changes there but I did not know I had to copy into too.

Is that what I need to do?

I changed and into too and it works.


1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.