at the beginning, the above websites are configured as follows. At this time, each website functions normally
server{
listen 80;
server_name www.xx.com xx.com;-sharp httphttps, www
return 301 https://www.xx.com$request_uri;
}
server {
listen 443 ssl;
server_name www.xx.com;
}
server {
listen 443 ssl;
server_name api.xx.com;
}
server {
listen 443 ssl;
server_name admin.xx.com;
}
when I added the following sites one day, the problem came
server {
listen 443 ssl;
server_name bt.xx.com;
}
when visiting bt.xx.com
, the result visits admin.xx.com
turns off admin.xx.com
, visits bt.xx.com
the result accesses www.xx.com
turns off everything else, and visits bt.xx.com
results are normal
this problem has been encountered before, but it is inexplicably better. Solve
found another problem
close www.xx.com
, visit www.xx.com
, the result is admin.xx.com
close www.xx.com
and admin.xx.com
, visit www.xx.com
result is api.xx.com
seems to close www.xx.com
.