I'm running XAMPP on my Mac, which is just an Apache and MySQL server running as my local host. When I set it up, I found port 8000 (the default) was already taken (maybe by the Apache that ships inside OS X?) so I just reconfigured the httpd.conf file to tell it to listen on port 8080.
Anyhow, it all works, and I even have put in some settings in /etc/hosts so I can just type "mysite.local:8080" into my browser.
Here's the ONLY problem: often when going to fetch a page from the local host, my Mac takes a while (1-10 seconds) on the "sending request" or "looking up" step of retrieving the page, and then finally the page loads and renders. It's actually faster for me to access my production server (that is several states away!)... obviously that's absurd and my local server, all right here on the same machine, should be lightning fast. Any ideas why it's so slow, and how I can fix it?
/etc/hosts
into the question? – Jason Salaz Mar 07 '12 at 17:01