Redirecting Apache served content based on username

Discussion in 'Apache' started by dtex23, Mar 15, 2007.

  1. #1
    Hello,

    Quick (and what I thought was easy) question: I would like to run a site that uses Apache authentication to admit users to a secure area. When initial authentication is performed, I would like the server to serve content based on username supplied, eg.
    user1 -> /www/stuff_for_user1/index.html
    user2 -> /www/stuff_for_user2/index.html
    user3 -> /www/some_other_directory/index.shtml

    It appears that I could do this using a script checking REMOTE_USER and redirecting to domain.com/stuff_for_userX, but this isn't as smooth as I would like.

    I am looking for something (for lack of a better explanation) to re-document_root the responses, so that all the users see is domain.com.

    Any ideas?
     
    dtex23, Mar 15, 2007 IP