开发者

127.0.0.1 works, localhost not, on apache2 server

开发者 https://www.devze.com 2023-01-26 21:09 出处:网络
Installed apache2 on my Win 开发者_StackOverflowXP 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.

Installed apache2 on my Win 开发者_StackOverflowXP 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: is the ipv6 equivalent of localhost - apache seems to only listen on ipv4

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号