Custom nginx.conf doesn't work

I follow the doc :

  • Created new template files.
  • Change this new template in hestia UI for the domain.
  • Rebuild with v-rebuild-user.
    Restart server.
    Check the /home/[user]/conf/web/[domain]/nginx.conf, the file respect my template.
    But when I load a page, the proxy_pass clearly not repect; the hestia default page is showed.

I tried to volontary make a error in .conf, the server/domain still running/respond.

So, the question is, where is the bug ?

My template for non-ssl is simple :

server {
listen %ip%:%proxy_port%;
server_name %domain_idn% %alias_idn%;
location / {
proxy_pass http://%ip%:8066;
}
}

  1. /usr/local/hestia/data/templates/web/nginx/php-fpm change or add a new template based on the existing one
  2. v-rebuild-web-domains user-name apply all templates
  3. restart nginx
  4. profit

Thanks for fast help…
But, after created new files(template) in php-fpm, how I can selected it in the UI ? No new template in “Backend Template PHP-FPM” (or “Proxy Template”). To be sure, I reboot the server, no change.

This doesn’t happen), if you created a template and put it in the templates folder, it will appear in the panel when setting up the site


If you are using Nginx+Apache the dir for the templates is this:

/usr/local/hestia/data/templates/web/nginx/

@sahsanu
It’s the original post, don’t work.

Show the output of these commands:

cat /home/YourUser/conf/web/YourDomain/nginx.conf
cat /home/YourUser/conf/web/YourDomain/nginx.ssl.conf

The ssl version don’t there because no ssl for this moment.

[Obfucating ip/domain]

server {
listen [myip]:80;
server_name [x.y.z];

    location / {
            proxy_pass http://[myip]:8066;
    }

}

Then are you sure that your browser is not trying to use the https version?

curl -ikL http://yourdomain

Yes, I’m sure; tested with curl, wget, and Firefox with option “safe url” deactived and private navigation.