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

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

 



Hi

     I want to replace the tilde symbol with slash in the URL,
And I know that I could add this setting

"AliasMatch ^/([^/]*)/?(.*) /home/$1/public_html/$2"

when all users' root directory are the same.


Now it's the problem...

     There are more than 5000  users in my server,
in order to avoid that all users' dirs stored in one root directory,
their root home directories are separated to 4 parts:
user1,user2,user3 and user4

So,the user's home directory is "/user[1or2or3or4]/USERNAME/public_html/"

Now I can't find any solution with "rewrite setting" to solve my problem.


I think it will be a performance impact if I add more than 5000 alias setting,
so I need to find other solutions.


Could you give me any suggestions?

Thank you very much

--

ccyen

---------------------------------------------------------------------
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