2009-05-21, Thu

Apache page load delay in Windows 7

In a previous WILT, we fixed a page load delay in Apache running on Windows Vista.

I’ve noticed a similar delay happening in Windows 7, though the solution is slightly different. This time round, Microsoft has commented out both IPv4 and IPv6 localhost name resolutions by default in the C:\Windows\system32\drivers\etc\hosts file.

All we need to do is add a line to point localhost to 127.0.0.1.

Open up C:\Windows\system32\drivers\etc\hosts and add this line to the file.
bc. 127.0.0.1 localhost

Now loading the page load on a local Apache running on Windows 7 should be instantaneous rather than having a slight delay.

Isaac Su

tags: apache delay httpd localhost page-load windows-7

---

Comment

---
 
---