On my local dev server, I set up test sites with the domain like this projectName.dev
Using the setting below in my Apache config file...
NameVirtualHost *:80
<VirtualHost *:80>
VirtualDocumentRoot E:/Server/htdocs/projects/%1/www
ServerAlias *.dev
</VirtualHost>
This allows me to access projectName.dev
in the browser and it will load the files from E:/Server/htdocs/projects/projectName/www/
I would like to modify this so that I can also access the same folders if I use the subdomain www
so in my example projectName.dev
and www.projectName.dev
would load the same files.
Can someone help me to do this? I don't understand the documentation very well