I would like to add a condition in an adduser script to update nginx.conf for it to load ~/www as http://ipaddress/~user whenever I create a new user.
And when a user is named www.domainname it will host that domain name in the ~/www folder.
Is there a script that already does this?