Let's encrypt's Nginx-https no small lock

Source: Internet
Author: User

1, using Let's encrypt encryption after nginx, access to the time, found no small lock, Chrome:

On Firefox browser:

You'll see the information above, because CSS, graphics, or JavaScript are still available via HTTP, and can be modified in a simple way, by the-uir parameter of Let's encrypt. This header applies to resources hosted under your own domain name or hosted by a third party, and you must ensure that resources are accessible.

Add the following configuration to the Nginx configuration file server segment or the location side:

Dd_header strict-transport-security "max-age=15768000; Preload  always;add_header content-security-policy upgrade-insecure-requests;


Use!!!!! with caution

Let's encrypt's Nginx-https no small lock

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.