2009-02-27, Fri

Apache page load delay on Windows Vista

When I load pages off my local Apache server in Window Vista, there seems to be a 1-2 sec delay before the browser starts receiving and rendering the page. It is pretty slow considering the fact that it is a local request.

Apparently it has something to do with Windows Vista doing an IPv6 lookup on localhost each time a page is requested. Here’s how I fixed it.

Load up C:\Windows\system32\drivers\etc\hosts in a text editor
Your host file will look something like this    localhost
       ::1          localhost

All you need to do is comment out the “::1 localhost” line    localhost
      # ::1          localhost

Save the file. This should solve the delay issue.

Thanks to the brilliant guys at apachelounge.

Isaac Su

tags: apache bug delay hosts ipv6 localhost problem slow vista windows



Commenting is closed for this article.