problem accessing localhost on Mac OS X Mavericks...it was working fine until I rebooted today
Had the same problem. I deleted one of my project's folder and it became broken.
In this case the site's configs should be removed from httpd-vhosts.conf and httpd.conf.

Try ping 127.0.0.1

apachectl configtest can help you to detect the problem.