MAC enable local http service is very simple.
Only one line of code to open the apachectl.
Open MAC Terminal
Open apachectl:
sudo apachectl start
Restart apachectl:
sudo apachectl restart
Close apachectl:
sudo apachectl stop
Server root directory:
/Library/WebServer/Documents
Open the Go To Folder finder copy and paste on the line, then you can access to a file on the http.