title: Different DocumentRoots in Apache based on HTTP Auth
body: <p>Does Apache (or another web server) have configuration support that would allow a user (me!) to set a different webroot based on the value of an authenticated HTTP user?</p>
  
  <p>i.e.</p>
  
  <p>Apache supports <a href="https://httpd.apache.org/docs/2.4/mod/core.html#documentroot" rel="nofollow">setting a particular folder on a server as a web site's document root</a>. </p>
  
  <p>Apache supports <a href="http://httpd.apache.org/docs/current/howto/auth.html" rel="nofollow">using HTTP Auth</a> to allow users access to resources.</p>
  
  <p>The end goal I want is, if user A accesses <code>http://example.com</code>, they're served files from one folder.  If user B accesses <code>http://example.com</code> (the same URL), they're served files from a different folder. </p>
  
  <p>(this is borderline webmaster material -- but the it's part of a larger programatic project, will likely involve conditional/programatic logic, so I'm erring on the side of asking on Stack Overflow)</p>