IP access domain name NGINX resolution
高洛峰
高洛峰 2017-05-16 17:11:25
0
2
435

After nginx has set up multiple domain name virtual hosts, if you access it directly through IP, which domain name virtual host will be accessed first? What are the rules?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(2)
迷茫

The first server
See which server is placed first in your nginx.conf (if you have not defined a default server)

phpcn_u1582
  1. What I’m talking about upstairs is a situation

  2. If configured in the following way, the first domain name virtual host will be read according to the system default file sorting by default

include /path/nginx/vhost/*.conf
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template