Nginx multiple domain names, some can be resolved normally, some 400 errors what is the situation?

as follows:

server{
    listen 80;
    server_name  abc.xxx.cn  yyy.com www.yyy.com;
    ......
    ......

}

other things should be fine, because both yyy.com and www.yyy.com can access abc.xxx.cn normally

Mar.17,2021

whether you are resolved to the same server when you access abc.xxx.cn;
or whether the domain name is not licensed, DNS hijacking and other problems.


400 is the currently given part of the Bad Request, problem, so it seems that there is nothing wrong with it, so you may need to take a look at the access.log connection log to see if it is connected normally, and then take a look at the configuration parts that have not been released.

Menu