Yes, you have to go into httpd-vhosts.conf file and add a virtual host structure similar to this:
ServerAlias domain.tld *.domain.tld
When you take a look at it you'll see the examples. NameVirtualHost *:80 already exists, but just has to be uncommented.
If it still doesn't work:
1. Clear your browser cache. It will screw you over by serving up a cache file that doesn't reflect the changes you've made.
2. check to make sure you have created the path (folders) for DocumentRoot and that you have typed it correctly.
3. make sure you have the correct spelling for your server name and that you have added it to Windows hosts file.
4. Make sure you restart the server as changes won't take place in Apache until you do.
Take a look at this link as well.