I just un-installed XAMPP and decided to take into use the Apache included within OS X. After a lot of fiddling around I've gotten it to somewhat work, but not quite.
I use VirtualHostX for managing vhosts to my local projects. When I add a vhost (e.g.
htdocs/Project) using the app, that vhost will work properly.
However, when I try to access
localhost, things get weird. Let's say I navigate to
localhost/foo on my browser. It gives 404, and this can be found in the error-logs:
[error] [client 127.0.0.1] File does not exist: /path/to/htdocs/Project/foo
So, basically it seems that the first vhost I have set up defines the folder where
localhost/* tries to look for files.
Any ideas? It is very possible I've messed up some configuration by either using XAMPP or VirtualHostX.