Safari only wants to connect to localhost via HTTPS
Actually, it looks like it was HSTS.

I followed the directions posted here:


Close Safari.
Delete the ~/Library/Cookies/HSTS.plist file.
Reopen Safari.


And now localhost sites are working correctly.