[thelist] How to do user.domain.com
PeterV
peter at poorbuthappy.com
Tue Jul 13 14:07:07 CDT 2004
I found the answer to my own question on Safari: use mod_vhost_alias.
In the virtual host, I add
UseCanonicalName Off
And instead of DocumentRoot you write VirtualDocumentRoot. The following
code
/dev/account_htdocs/%1.1/%1
given http://peter.domain.com, resolves to /dev/account_htdocs/p/peter
%0 means give me the whole name: peter.domain.com
%1 means give me the first part of the name: peter
%3 means give me the third part: com
%1.1 means give me the first letter of the first part: p
Using the /p/ subdirectory helps when I get 1000s of users because most
Oss get slow when a directory has 1000s of subdirectories. This approach
spreads it out a bit.
Hope that helps someone :)
Peter
More information about the thelist
mailing list