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?