Nginx to turn on SSL

Source: Internet
Author: User

server {Listen 443;  server_name hsggj.docker.com;         The address you define yourself;        SSL on; SSL_CERTIFICATE/ETC/NGINX/SSL/NGINX.CRT;  The location of the CRT; ssl_certificate_key/etc/nginx/ssl/nginx.key; where key is located;}

If the certificate will not be demonstrated, my blog has a detailed description, you can find it yourself;


After the definition is complete, save to exit, restart the service to take effect;

Enter https://hsggj.docker.com in the browser because the host file must be modified locally;

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/83/86/wKiom1d07J6iDqvkAADgArfbKEo414.png-wh_500x0-wm_3 -wmp_4-s_2221150297.png "title=" 111111111111.png "alt=" Wkiom1d07j6idqvkaadgarfbkeo414.png-wh_50 "/>


Nginx to turn on SSL

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.