Custom nginx directive

I created a custom file
/home/hgrandnode/conf/web/hgrandnode.domain.tk/nginx.conf_site

And I added:

 location / {
proxy_pass http://127.0.0.1:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
        
    }

But when I restart nginx service, I am getting:
nginx: [emerg] duplicate location “/”

So how can I edit existing location tag in nginx conf and save for future overwrites?

https://docs.hestiacp.com/admin_docs/web.html#how-do-web-templates-work

Create a template

Ok I think I should create template for each user. And select that template in “edit domain” web, I say “each user” because each user must have unique port. Is that correct way? I need to create each users template file for select it with different port need?

yes, there is currently no other way.

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