I have an apache web server running on my mac. Since upgrading to macOS High Sierra, if I connect to localhost or 10.0.0.7 in Safari (or any other web browser) I get the message "Safari can't open the page "localhost" because Safari can't connect to the server "localhost".
I can confirm apache is running. If I run
apachectl configtest I get "Syntax OK".
If I type
httpd -v I get
Server version: Apache/2.4.28 (Unix) Server built: Oct 19 2017 09:26:34
I have tried restarting apache and this has no effect. Does anyone have any idea how I can get it working? All my web files are stored in /Library/WebServer/Documents.
Attached is a copy of my httpd.conf.