With Mac OS X 10.8 Mountain Lion the “Web Sharing” option has been removed from the System Settings, here’s how to get the Apache back running and pointing it to directories of your choice as root for your custom virtual localhosts.
Edit File /etc/apache2/httpd.conf → Go to line 477(in vim type :477) uncomment:
Include /private/etc/apache2/extra/httpd-vhosts.conf
Create new file /etc/apache2/users/yourusername.conf with the following content
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
Edit /etc/apache2/extra/httpd-vhosts.conf
DocumentRoot "/path/to/your/local/project/folder/"
ServerName web.local
Launch Apache first time
sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist
Start Apache
sudo apachectl start
Restart Apache, whenever you change one of the config files
sudo apachectl restart
Edit sudo vim /etc/hosts Add line:
127.0.0.1 web.local
Note: If you run into issues seeing your website in a browser check the /var/log/apache2/error_log