getpwnam("www") failed in /etc/nginx/nginx.conf
Solution 1:
The user you specified in your configuration, www
, doesn't exist. Either create the user, or choose a user that does exist.
Solution 2:
Your other option (if you don't want to create a new user) is to replace the user field in nginx.conf with:
user nobody;
Solution 3:
Create the www
user. On Ubuntu this should be done using the following command and flags:
sudo adduser --system --no-create-home --shell /bin/false --group --disabled-login www