I am trying to set up a virtualhost on my apple mac on localhost. The server is provided by XAMPP, which bundles Apache/MySQL/PHP in one bundle.
Here is what I have done
Have you told Apache to actually use name-based virtual hosting?
# Use name-based virtual hosting. # NameVirtualHost *:80
I don't believe it's enabled by default in Xampp on Mac.