Permanent changing document root for all domains

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

/home/{{user}}/web/{{domain}}/app/webroot

Instead of:

/home/{{user}}/web/{{domain}}/public_html

I hope someone on here can help.

Thanks

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

Ok,

Let me understand this correctly.

I copied

/usr/local/hestia/data/templates/web/nginx/default.tpl

Into

/usr/local/hestia/data/templates/web/nginx/cake.tpl

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

Is that what I need to do?

I changed and caching.sh into cake.sh too and it works.

Thanks.

1 Like

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