Hi,
You MUST use VirtualHost for your local site. Read and apply :
The need for Virtual HostYou did not realize it, but on your production server, your site is installed in a VirtualHost, like all the hosters.
---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons