search

Home  >  Q&A  >  body text

nginx - How to test domain name website locally?

I don’t know how to choose the right title for the question.

The question is:
I purchased an Alibaba Cloud server and configured it. I currently have a domain name www.a.com, but it points to another server. Because I want to test the website on the newly purchased server, I also need www.a.com. My idea is to add ## to the local host. #0.0.0.0 www.a.com (0.0.0.0 is the server ip)
But it’s useless? What should I do?

滿天的星座滿天的星座2781 days ago365

reply all(1)I'll reply

  • 某草草

    某草草2017-05-16 17:20:39

    Refresh dns cache

    reply
    0
  • Cancelreply