I'm migrating my server from weaker to mightier one however I want to make it more organized in the new place.
In the old server there is one user in whos home directory basically most of files, java applications and everything else is placed and Nginx is running under this user too (not www-data). But there are few more users and they have files under their home directories as well and some of nginx configuration is pointing to those some of those directories too. Basically it's a mess old developers had left which I've to clean up.
Any tips on how to keep it more organized? Do I need the Nginx to strictly be running under www-data? As far I understand it should be so for security measures right? Where should I keep files which will be used by Nginx so it would be organized? Do all files used by Nginx must be owned by www-data? Some general guidelines how do you handle these things would be much appreciated.