Re: how to replace tilde with slash when users' home dirs are different?

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

 



On 2/14/07, Krist van Besien <krist.vanbesien@xxxxxxxxx> wrote:

The way I would solve this is have the users spread over more than
four dirs, like this:

/users/a/
/users/b/
and so on, al the way to z.

Than have all your users whose username starts with a in /users/a/ and
so on. So ccyen would have hist homedir in /users/c/ccyen.

You can than use an AliasMatch like this:

 "AliasMatch ^/([^/])([^/]*)/(.*) /users/$1/$1$2/public_html/$3"

Not a bad idea.  But if the location of your home directories is
already fixed and unchangeable, some alternatives:

1. Create a dbm file mapping username to directory and then use
mod_rewrite with RewriteMap to do the mapping.
2. Hack mod_userdir to not require the tilde.

The last one is probably the simplest solution if you know a little C
programming.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[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