search

Home  >  Q&A  >  body text

Set the web page to be opened on non-localhost and open it using www and other methods.

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

张雷(雷)张雷(雷)2572 days ago1211

reply all(1)I'll reply

  • Day

    Day2017-11-07 13:05:37

    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

    reply
    0
  • Cancelreply