I am setting up a local dev environment on windows that accept subdomains. so far on my host file i have
127.0.0.1 test.press.lc #subdomain site, since we cant have dynamic subdomain 127.0.0.1 press.lc #the main site
and in apache conf, i have
<VirtualHost *:80> ServerName press.lc DocumentRoot D:/htdocs/web/press/ ServerAlias *.press.lc </VirtualHost>
i can access press.lc without any problem, but when i try to access test.press.lc. i get redirected to external site(in this case it's earthlink search, since it thought i made a typo in my url). Is my setup wrong? plz help.