Score:0

Different NGINX user for proxy configuration, reverse proxy and websites - is it possible?

pr flag

I have NGINX instance in my server working in ROOT account.

user root;
upstream docker {
   server unix:/var/run/docker.sock;
}
server {
   listen 4444 default_server;
   location / {
      proxy_pass http://docker;
      auth_basic_user_file /etc/nginx/.htpasswd;
      auth_basic "Access restricted";
   }
}

I want to use the same instance (without docker) as reverse proxy. I don't use ROOT account for this purposes, for reverse proxy and ordinary sites I need ordinary account "www-data". Is it possible?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.