Apache is installed by default, here's how to configure it.
vi /etc/apache2/httpd.conf
Add the following line
Include /private/etc/apache2/vhosts/*.conf
Create vhosts folder
mkdir /etc/apache2/vhosts
create your local site config
vi /etc/apache2/vhosts/mysite.conf
sudo vi /etc/apache2/httpd.conf
Add the following line
LoadModule userdir_module libexec/apache2/mod_userdir.so
Include /private/etc/apache2/extra/httpd-userdir.conf
Edit httpd-userdir.conf
sudo vi /etc/apache2/extra/httpd-userdir.conf
Add the following line
Include /private/etc/apache2/users/*.conf
sudo mkdir /etc/apache2/users
sudo vi /etc/apache2/users/myusername.conf
Add the following configuration to myusername.conf
<Directory "/Users/myusername/Sites/">
AllowOverride All
Options Indexes MultiViews FollowSymLinks
Require all granted
</Directory>
sudo apachectl configtest
sudo apachectl restart