On my machine I'm using WAMP with virtual hosts. All I did was to add 127.0.0.1 my-project.loc line into system32\drivers\etc\host file and the following code into httpd-vhost.conf from the Apache2.2.11\conf\extra folder.
<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot "c:/wamp/www/my-project.loc" ServerName my-project.loc ErrorLog "logs/my-project.loc-error.log" CustomLog "logs/my-project.loc.log" common </VirtualHost>
My question is how can i make the www.my-project.loc to work too. Can you give me the smart solution, because i assume that writing the same code but this time with ServerName www.my-project.loc isn't a good idea.