Take the 2-minute tour ×  Suppose I have two local websites
under /var/www/mysite1 and /var/www/mysite2 via apache I can
access them via localhost/mysite1 and localhost/mysite2.  The
pages are for local use only and I have multiple users on my
machine, say user, user1 and user2. Is it possible, that user
can view both sites, but user1 only mysite1 and user2 only
mysite2?  share|improve this question I doubt it, I'm pretty
sure the server doesn't get sent the username. You could do it
with http passwords. –  Kevin Jan 27 '12 at 16:25 You could also
achieve this with a Single Sign-On solution, I think; with a lot
more effort compared to @Kevin's htaccess hint. –  sr_ Jan 28
'12 at 10:10 (Scratch that last remark, both solutions probably
need some kind of htaccess-like configuration.) –  sr_ Jan 28
'12 at 14:08  1 Answer 1  In the old days, you could use
mod_access_identd. It added an Ident directive allowing
authentication and authorization through the Ident protocol. The
Apache server interrogates an Ident ser