search

Home  >  Q&A  >  body text

One server has two IPs and there is a problem when setting up two websites. Is there anyone knowledgeable?

The problem is that each domain name can correctly access each directory, but the same website appears when accessing it using the IP address. I don’t know where the problem is. Please help me solve it. Thank you!

phpcn_u98618phpcn_u986182278 days ago1169

reply all(2)I'll reply

  • 秋香姐家的小书童

    秋香姐家的小书童2018-09-04 10:01:00

    Just delete the NGINX default configuration DEFAULT configuration

    reply
    0
  • 森林的林·强大的强

    森林的林·强大的强2018-09-03 22:46:52

    If you are using Nginx. Just add the IP address you need to access in the Server section of the conf file. Two IPs and one website is because neither of your two IPs specify a website. So the default website is visited.

    reply
    0
  • Cancelreply