After Wamp is installed, 127.0.0.1 can be accessed, and localhost cannot

Source: Internet
Author: User

After Wamp is installed today, it cannot be accessed.

Forbiddenyou don'T have permission to access/on this server.

Obviously, I have no permission, because I set the directory corresponding to www to a SVN directory. I checked it and found that the directory is read-only (in fact, it is a third State ), I gave it to readable, confirmed it, and checked it again, so I thought it was the reason (because I can map WWW to the svn directory in the dormitory), searched online and found that, this third State has no practical effect, that is, it does not matter.

It is useless to change the Apache configuration file on the Internet. tangle, then I tried 127.0.0.1 and found that it could be accessed. Ping localhost (if it is different, change the hosts file). Then I searched for the problem again and found the solution here: I modified the IE settings. Here is an excerpt:

This is because the computer in my department can only access the network through the host in the LAN as a proxy server. When setting the proxy server, "No proxy server is used for this address (B) "Check, resulting in the experiment Proxy Server when accessing the local address. localhost can only be resolved by the local host, and the proxy server cannot resolve the localhost of other hosts. You only need to attach the √ under the Internet option-link-LAN Settings-proxy server.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.