A web server need root privileges in order to bind ports 80/443.
But in this case it’s only the primary Nginx process that will run as root. The subprocesses will run as a non-privileged user, as specified with the “user nginx” directive.
https://github.com/bunkerity/bunkerized-nginx/blob/master/co...
https://unix.stackexchange.com/questions/134301/why-does-ngi...