Apache on Mac

go to: System Preferences > Sharing

check on Web Sharing

Example, http://localhost

or http://localhost/~yourname/

Source Directory

/Library/WebServer/Documents

/Users/yourname/Sites/your web pages are here

Ref devarticles.com