This is a discussion on Virtual hosts, mod_userdir within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello, i'm looking for a solution to the following problem, any helpful tips would be greatly appreciated. Problem: I ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello,
i'm looking for a solution to the following problem, any helpful tips would be greatly appreciated. Problem: I have a webserver running debian and apache2 that is configured for two virtual hosts, say server1.com and server2.com. On the same server there is a /home containing the home directories of users. Each user belongs to either group1 or group2 (default linux system groups, /etc/groups). All user-directories are located in /home/{user_1, .. ,user_n}. Is it possible to have mod_userdir for server1.com serve only the directories of users belonging to group1, for server2.com those belonging to group2 (i.e. server1.com/~user_x/ is served if user_x is in group1)? I am aware that I could just manually add each user to a "UserDir disabled/enabled" statement but I'd prefer not to have to update apache-configurations every time a user is added/deleted as users are managed centrally via LDAP. Is there a way to do this? Thank you for tips and pointers! SJ |