The host name of the HTTPS protocol gets the following link http://www.ttlsa.com/web/multiple-https-host-nginx-with-a-ip-configuration/General: This is the SSL The behavior of the protocol itself is caused by establishing an SSL connection before sending an HTTP request, so nginx does not know the name of the requested host when establishing an SSL connection, so it only returns the certificate of the default host. If you want to set the default host: The Listen port "Default_server" SSL requires SSL on normal case, the first found server as the default host if the include *.conf then which will become What about the default host? Linux has no file creation time and cannot be seen directly. However, there is always a sequential reading of the Conf file, so the first read of the configuration in the Conf file is the default host, confirming the order in which the files are read
- #include <stdio.h>
- #include <dirent.h>
- int main (int argc, char * argv[])
- {
- struct Dirent *ptr;
- DIR *dir;
- Dir=opendir ("conf directory");
- printf ("File list: \ n");
- while ((Ptr=readdir (dir))!=null)
- {
- Skip '. ' and ' ... ' Two directories
- if (ptr->d_name[0] = = '. ')
- Continue
- printf ("%s\n", ptr->d_name);
- }
- Closedir (dir);
- return 0;
- }
Finally, the order in which the files are read is displayed
Nginx HTTPS Server parsing problem