Set the webpage to open on non-localhost, use www and other methods to open it
Now the webpage I write on my computer can only be opened through localhost to see the effect, and cannot be opened through www. Preview the webpage name, I am using phpstudy 2017 version, PHP is 7.0.12, please give me some advice
After setting the domain name, you need to manually add 127.0.0.1 www.xxxx.com in the host file of the C drive. The default is port 80. If your site port is 81, then enter the local domain in the browser Named www.xxxx.com:81