mass virtual hosts

Hello,

I'm now got Apache2.

i now want to be able to get mass virtual hosts.

i now got this for that

<VirtualHost _default_:*>
ServerAdmin httpd@domain.com

#
# %0 = *.domain.com
# %-1 = .com
# %-2 = .no-ip
# %-3 = domain
# %-4 = sub
#
#

VirtualDocumentRoot "c:/home/%-3/%-4+"

ServerName %0
ServerAlias www.%0

</VirtualHost>

I'm hostong *.no-ip.* domains so i don't got that problem.

as you might be able to see there is something wrong.
if i goto http://domain.no-ip.com it will goto c:/home/domain/_
if i goto www.domain.no-ip.com it will goto c:/home/domain/www

so now i'm looking for a rewrite rule which allows www.test.domain.no-ip.com to goto c:/home/domain/test
and not c:/home/domain/www.test


i now have this:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.(.*)\.no-ip\.com [NC]
RewriteRule ^(.*) http://%1\.no-ip\.com$1 [R,L]


but ofcource it won't work(thats why i'm here)

is there somebody with a answer how to solve my problem.
I know that i could use symlinks. but i'm on windows 98 which doesn't support symlinks

i really hope that somebody could help me solving my problem.

Allowee

 

 

 

 

Top