[Linux] Different dirs for different logins with apache?

Danny Rathjens linux@flux.org
Thu, 10 May 2007 17:40:01 -0400


http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritecond

Aaron Wolfe wrote:
> Hi,
> 
>  
> 
> I am not sure if this is possible, but thought one of the experts here 
> might point me in the right direction.
> 
> I would like to have a website that requires user authentication, and 
> depending on the login supplied, serves up one of many different web 
> roots.  In other words, if you login as Bob you see one website and if 
> you login as Terry you see a completely different one, with no way to 
> navigate between the two.
> 
>  
> 
> I could do this with a cgi that redirects based on the user, but I don’t 
> think it would be ideal or all that secure and I was hoping apache could 
> be setup to do this automagically.  I haven’t found much about this 
> searching on the web, so any ideas are appreciated.
> 
>  
> 
> -Aaron
> 
>  
>