I'm wondering if it is possible to set different home directories for the same ssh user for each subdomain.
So let's say you login with ssh myuser@example.com
your home directory will be:
/www/httpdocs/
If you login with ssh myuser@subdomain1.example.com
your home directory will be:
/www/subdomain1/
If you login with ssh myuser@subdomain2.example.com
your home directory will be:
/www/subdomain2/
...
And so on.