Hi,
Not use VirtualHost is definitely the wrong solution.
For example, wampserver.com is hosted by Gandi and you do not call (http://gandi/wampserver.com); well, in the same way, your projects are hosted by localhost and you should not add an additional level in the url, if you do it, variables like $ _SERVER [...] will not have the right values.
Forum:
WampServer English