Apache Server configuration support - Virtual hosts, mod_userdir

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > January 2007 > Virtual hosts, mod_userdir





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Virtual hosts, mod_userdir
S.J. Oh

2007-01-12, 1:17 pm

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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com