I've been trying to set up MAMP (macOS, Apache, MySQL, PHP) using Homebrew on macOS Monterey.
I set the file directory for Apache as /Users/myname/Sites in httpd.conf. When I go to http://localhost in Chrome, I get the index.html page in that directory. But when I go to http://localhost in Safari, it opens the index.html page in /Library/WebServer/Documents.
Do I somehow have 2 copies of Apache running? How do I resolve this conflict?
sudo lsof -i | grep LISTENwhat processes are listening? Also, can you check your/etc/hostsfile? It appears that Safari (and Firefox) need both IPv4 and IPv6 specifications in that file. Perhaps that plays a role? – Saaru Lindestøkke May 12 '22 at 15:02http://127.0.0.1in Chrome and Safari, do you get the same page? If you open Terminal and runcurl http://localhost, whichindex.htmldo you get? – jaume May 13 '22 at 07:31