How to serve up different content depending on authenticated user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi There

I'm running apache 2.2 on Ubuntu and I need to serve up a different directory depending on the user that is authorised with the server. I've check the mailing list and apache docs but haven't found much so far - I may just not have the proper search terms though (I don't know how best to describe it)

eg.

http://spidie@foo.com -> /var/www/private/spidie
http://fred@foo.com -> /var/www/private/fred


etc etc.

I have the authentication stuff running ok - that's not really my problem - I just need to inspect the user and serve up the appropriate directory.

I believe it can probably be done using a mod_perl handler... but I'm not great with perl so thought I'd check on the list to see if there is an easier way first. The only thing I found that was remotely close was http://httpd.apache.org/docs/2.2/mod/mod_vhost_alias.html

Thanks in advance
Steve


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux