Nginx HTTPS Server parsing problem

Source: Internet
Author: User
Tags ssl connection

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
  1. #include <stdio.h>
  2. #include <dirent.h>
  3. int main (int argc, char * argv[])
  4. {
  5. struct Dirent *ptr;
  6. DIR *dir;
  7. Dir=opendir ("conf directory");
  8. printf ("File list: \ n");
  9. while ((Ptr=readdir (dir))!=null)
  10. {
  11. Skip '. ' and ' ... ' Two directories
  12. if (ptr->d_name[0] = = '. ')
  13. Continue
  14. printf ("%s\n", ptr->d_name);
  15. }
  16. Closedir (dir);
  17. return 0;
  18. }
Finally, the order in which the files are read is displayed

Nginx HTTPS Server parsing problem

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.