| | |||||
| ||||||||
| Domain Name Discussion The place for general domain name related discussions. |
![]() | LeadRefs | Forum Sponsorship |
| Want to sell your domain? LeadRefs.com finds multiple potential buyers to contact instantly! | ||
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| New Member Join Date: Aug 2004 Location: Philippines
Posts: 6
![]() | 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. |
| |