NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Domain Name Discussion Forums > Domain Names > Domain Name Discussion
Reload this Page Catching all subdomain on LOCAL APACHE/WINXP Box

Domain Name Discussion The place for general domain name related discussions.

Advanced Search
0 members in live chat ~  
LeadRefs LeadRefs
Forum Sponsorship
Want to sell your domain? LeadRefs.com finds multiple potential buyers to contact instantly!



Closed Thread
 
LinkBack Thread Tools
Old 08-23-2004, 12:54 AM THREAD STARTER               #1 (permalink)
New Member
Join Date: Aug 2004
Location: Philippines
Posts: 6
aeonmarky is an unknown quantity at this point
 



Catching all subdomain on LOCAL APACHE/WINXP Box


Hello guys

Heres my problem

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

e.g. www.test.com <http://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 <mailto:webmaster@dummy-host.example.com>
DocumentRoot c:/apache/htdocs/test/
ServerName www.test.com <http://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 ^(*.)$ http://www.test.com [L,NS]


????: NamePros.com http://www.namepros.com/domain-name-discussion/44543-catching-all-subdomain-local-apache-winxp.html
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. thanks!


Thanks for advance help..
__________________
Those who have less in life, must have more in law.
aeonmarky is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 09:18 AM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger