Apache Server configuration support - Re: A question about setting up 1000s of directories under Apache Doc

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > January 2004 > Re: A question about setting up 1000s of directories under Apache Doc





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: A question about setting up 1000s of directories under Apache Doc
Georg Buzek

2004-01-23, 10:33 am

rp schrieb:
quote:

> I am looking for suggestion on how to scale this. I may have up to
> 20,000 difference subscribers on one domain. Are there tricks i can do
> in apache so they can have an www.mydomain.com/thiername URL, but the
> albsolute Path is different



<VirtualHost 1.2.3.4:80>
RewriteEngine on
DocumentRoot wherever/htdocs
ServerName domain
RewriteRule
^/(([a-z0-9\.\+\-])([a-z0-9\.\+\-])[a-z0-9\.\+\-]+)(.*)
wherever/htdocs/1$2/2$3/$1$4
# -> domain/user wherever/htdocs/1u/2s/user or
# domain/dummy wherever/htdocs/1d/2u/dummy or
# domain/admin wherever/htdocs/1a/2d/admin
</VirtualHost>

2 depth pseudo hash

--
mfg, Georg Buzek
remove "no-spam"
from mailaddress
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com