Catching all subdomains on a Apache/WinXP

Hello guys

Heres my problem

I want to catch all subdomains on my local domain name…

e.g. www.test.com

and i want to catch all subdomains… before the .testing.com…

e.g. 1.test.com, 2.test.com, sdffs.test.com

without having fix on the winnt/system32/drivers/etc/host

Here what ive done

first, i created a virtual host on my apache httpd.conf

here it is,

<VirtualHost test.com>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot c:/apache/htdocs/test/
** ServerName *www.test.com
** ServerAlias test.com .test.com

ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

and on my winnt/system32/drivers/etc/host file

127.0.0.1 test.com www.test.com

and on my .htaccess using a mod_rewrite

RewriteEngine on
RewriteCond %{HTTP_HOST} ^([a-z0-9]+)…+…$ [NC]
RewriteCond /apache/htdocs/test/%1 !-d
RewriteCond /apache/htdocs/test/%1 !-l
RewriteRule ^(
.)$ www.test.com [L,NS]

Finally i got the result when i type http://www.test.com on my browser

is SERVER ERROR or misconfigution…

Please help… im really getting frustrated with this one. :slight_smile: thanks!

Thanks for advance help… :slight_smile: