简体   繁体   中英

127.0.0.1 works, localhost not, on apache2 server

Installed apache2 on my Win XP SP3, and it's going well if I acess 127.0.0.1, but when I try to type 'localhost' it returns the error that connection to server has been reset. I tried to ping 'localhost', it shows something like

Reply form ::1: time<1ms

In system32\\drivers\\etc\\hosts it is stated that localhost is 127.0.0.1 ( 127.0.0.1 localhost ). Why could this happen? I've run out of variants.

:: 1:相当于localhost的ipv6-apache似乎只在ipv4上监听

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM