Please note that the standard name-based virtual hosts depend on receiving a correct domain name from your browser request to serve the appropriate site (vhost).
The right way to test out multiple vhosts on your local machine is to give them any domain name you can think of, and simply map that domain to
127.0.0.1 (localhost) by adding it to
will work great as long as you add this line to
- Note that Apache will throw a
Could not reliably determine server's FQDN warning whenever started/restarted; you can safely ignore it.