Here's my vhost file:
UseCanonicalName Off
<VirtualHost *:80>
VirtualDocumentRoot /Users/username/Sites/%-2+
ServerName test
ServerAlias *.test
</VirtualHost>
I use it for my local development. Under directory ~/Sites i have all the site folders, for example: ~/Sites/myblog. This virtualdocument thingy is working well, except for www to non-www redirect. If i type in a browser: www.myblog.test it throws an error "Not found". How can i make it work as www.myblog.test and myblog.test together?