One server has two IPs and there is a problem when setting up two websites. Is there anyone knowledgeable?
phpcn_u986182018-08-31 21:46:30
0
2
1167
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!
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.
Just delete the NGINX default configuration DEFAULT configuration
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.