Hi,
There is nothing to "fix". For your local sites, you must use VirtualHost as with any web host.
See
The need for Virtual Host and
Wampserver 3 - Create or add a VirtualHost---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons