PHP? HOSTS

Source: Internet
Author: User
PHP? HOSTS
1, Use Text Editor to open the following file with Administrator privilege (c:\windows\system32\drivers\etc\hosts)2. Modify the hosts file and add the line (127.0.0.1 ***************)3. Then save the change, after site, we can access our development site with ********** and then use single side on login correctly. Use the trail login account saved in excel under d:\doc\webcontent


I don't understand why.
The login module in the localhost/project name project cannot enter
* ********/The login module in the project name can go in (********* refers to the online project website)


Reply to discussion (solution)

What do you want to know?

I don't understand what you're asking

What do you want to know?



Why do you want to add
127.0.0.1 launch project website

What exactly do you want to ask? Maybe the sky knows

Is a hosts file, not a folder

We know that when a browser accesses a website, it first needs to go to the Domain Name Server (DNS) to convert the domain name to the corresponding ip address, and then use this ip address to connect to the website server
The hosts file in the operating system saves us the first step. by placing the comparison between common domain names and ip addresses in the hosts file, we can speed up website access (without accessing the DNS server)

Another role of the hosts file is to place non-real domain names in it to simulate the real environment.
For example, the hosts file contains
127.0.0.1 launch project website
Then you can use http: // to launch the project website to access the local development project only by using http: // 127.0.0.1 or http: // localhost.
It's like accessing the network.

It is estimated that this login will determine whether the domain name is the specified domain name, so you need to use HOSTS to resolve this domain name.

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.