Custom nginx directive

I created a custom file

And I added:

 location / {
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?

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.