开发者

How to make localhost work

开发者 https://www.devze.com 2023-01-31 10:30 出处:网络
I have installed WAMPServer 2.0i on my computer. After having done so, i typed in: http://localhost it showed up as an error.

I have installed WAMPServer 2.0i on my computer. After having done so, i typed in: http://localhost

it showed up as an error.

But if i type in 127.0.0.1 it shows the Wamp 开发者_如何转开发Server homepage which should show up in the localhost page. I have not done anything yet. I am not sure what happened. Please help.


Edit C:\windows\system32\drivers\etc\hosts and place the following into it:

127.0.0.1 localhost


Navigate to C:/Windows/system32/driver/etc. Then cut the hosts file and paste it in another folder on the desktop. Open it in Notepad and change ::1 to the 127.0.0.1 localhost and then save it. Then put it back in C:/Windows/system32/driver/etc. Now restart the WWAMP and get it.


Check your hosts file.

It would be located in C:\Windows\System32\drivers\etc and needs to have the following entry:

127.0.0.1       localhost
0

精彩评论

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

关注公众号