I have very little experience in Gnu/Linux.

I am now configuring a VPS (Debian 10), on which I want to create more than one, Apache2, virtual host.

All virtual hosts directories will be located in `/var/www/vhosts`.

Accordingly, for each virtual host (e.g. `myproject.com`):

```
/var/www/vhosts/myproject.com
/var/www/vhosts/myproject.com/public_html
/var/www/vhosts/myproject.com/__logs__

```

For each virtual host a new user will be created. For the example above - `usr_myproject`. The home directory (for FTP purposes) of this user should be `/var/www/vhosts/myproject.com` .

My problem is to assign correct permissions and groups for this user and for the virtual host directory. The same question about the `/var/www/vhosts` directory.

Any help or link to web resources will be really appreciated.

Thank you.