0

I am trying to figure out who is the web server user when using nginx? In my nginx.conf file I have a line that says the following...

user nginx;

Does this mean that nginx is the web server user? Can I freely change this?

Nebek
  • 41
  • 2
  • 8

1 Answers1

1

The user is simply nginx as you found in the configuration file. (At least in the distros that I'm usually using, which is Fedora/RedHat/CentOS/Rocky Linux)

You should be able to change the user if you need to. But that has already been answered in these questions:

Changing the user that nginx worker processes run under (Ubuntu 12.04)

How do I change the NGINX user?