Hi everyone, I’m very new to HestiaCP and I must say that so far I love it, very well done!
I’m having some difficulties on understanding how can I edit a single site Nginx configuration. I thought that I just had to clone an existing configuration from here /usr/local/hestia/data/templates/web/nginx/php-fpm and then select it as template for the site, however if I do so, despite I reload Nginx, I do not see the changes.
I am able to see the changes only if I manually edit the file at /home/site.com/conf/web/site.con/nginx.ssl.conf.
Example using test as user, example.net as domain and yes to restart the web services.
v-rebuild-web-domain test example.net yes
Also, keep in mind that /usr/local/hestia/data/templates/web/nginx/php-fpm/ templates are for Nginx standalone, if you are using Nginx+Apache, the proxy templates are her /usr/local/hestia/data/templates/web/nginx/ and apache templates here /usr/local/hestia/data/templates/web/apache2/php-fpm/
Hey @sahsanu thank you very much for the quick reply, I missed that step, I’ll try right away!
I’m using Nginx standalone so I should be good using those templates, thank you for confirming!
Shall I install extras like libnginx-mod-http-lua manually via apt install nginx-extras or is there a way via the HestiaCP GUI?
There is no way from web UI, you should install it via aptBUT, those packages; libnginx-mod-http-* and nginx-extras are created by Debian/Ubuntu for their Nginx version and Hestia doesn’t use it, Hestia uses mainline Nginx directly from nginx.org repositories.
Gotcha, I need to check if I can have Nginx executing a bash command/script without the use of Lua then . I see that a user can clear fastcgi cache from the Hestia panel but I’d like to create a MU plugin for the CMS so that it can be cleared from the site admin area too. I’ll make some test. Thank you for all the details @sahsanu
Hey @Bruce27 , I did get it to work.
I have broken the Nginx installation first though so if you want to try it try it on staging server if you have one.
I’ve installed the extras via apt, Nginx broke, I’ve then used the solution I found here and once I used nginx -V again I found the Lua module to be available.