C:\Documents and Settings\Brett McLaughlin>ping localhost
Pinging Cuthbert [127.0.0.1] with 32 bytes of data:
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Ping statistics for 127.0.0.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms
尽管这不是一个典型的 Web 站点,但是它就是 我们想要的结果。记住,您创建了一个新目录(C:\Documents and Settings\Brett McLaughlin\My Documents\websites),并引导 Apache 在此目录中搜索 Web 文件。问题是此目录中目前没有任何文件。因此,Apache 会报告它不会显示您的空目录(一种安全措施)。修正此问题最容易的方法是导航到此目录,并创建一个简单的文件: