Ok
If you enter what you believe to be a valid domain name ( valid because you have a VH and an entry in the HOSTS file ) and it takes you to localhost ( actually to the first VH definition in the VH Def file ) it means there is an issue somewhere with the VH Definition for that domain name.
Apache will default to the first VALID VH Definition when it cannot find the domain name for some reason.Try changing your Virtual Host Definitions to this :-
Note the addition of
Options Indexes FollowSymLinks
# Should be the first VHOST definition so that it is the default virtual host
# Also access rights should remain restricted to the local PC and the local network
# So that any random ip address attack will recieve an error code and not gain access
<VirtualHost *:80>
DocumentRoot "d:/wamp/www"
ServerName localhost
<Directory "d:/wamp/www">
AllowOverride All
Require local
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "d:/wamp/www/project1"
ServerName project1
<Directory "d:/wamp/www/project1">
AllowOverride All
Options Indexes FollowSymLinks
Require local
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "d:/wamp/www/test"
ServerName test
<Directory "d:/wamp/www/test">
AllowOverride All
Options Indexes FollowSymLinks
Require local
</Directory>
</VirtualHost>
---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>Read The Manuals Apache --
MySQL --
PHP --
phpMyAdminGet your Apache/MySQL/mariaDB/PHP ADDONs here from the
WAMPServer alternate Repo-X-X-X-
Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-