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.