I run a home server with Ubutnu 16.04 with Apache 2 let say for fun and to improve my linux knowledge
At the moment I have few web applications/websites which are for personal use (bug tracker, forum, cloud and similar)
All this sites are under /var/www
I don't have a DNS and I'm not using virtual hosts. all sites/applications can be reached from outside as: my_DDNS.net/forum my_DDNS.net/cloud . . .
What I'm trying to achieve, pretending to run a proper web server, is to have single user access for each different web directory as on commercial hosts. If it helps the idea is: User: forum -> manage /var/www/forum User: cloud -> manage /var/www/cloud . . . enhancing (I think) security having all directories owned by different users and not only from www-data. At the moment the users are not real ones which can login or install SW, just to manage the sites
This step will also include specific ftp (proftd vs vsftp, suggestions?) access for each users to only a specific /var/www/ directory.
One day I'll probably update my free DDNS service to a pro version which will allow me to have subdomines managed by my local DNS but before it I'd like to streight up these curiosity.
If all above is clear, I'd really appreciate if any of you could help me with suggestions or giving me hints and what to search more specificly
Will be enough to set the home directory of each user the related /var/www/ directory?
Is there any more 'professional' way of doing it?
Cheers