您好,欢迎来到二三娱乐。
搜索
您的当前位置:首页Nginx处理HTTPS包含HTTP警告问题(只能支持Chrom

Nginx处理HTTPS包含HTTP警告问题(只能支持Chrom

来源:二三娱乐

1.下载Nginx的headers-more-nginx-module

2.编译Nginx

3.安装Nginx

[root@localhost ~]# make install

4.修改nginx配置

location / {
    more_set_headers "Server: Nginx Web Server";
    more_set_headers "Content-Security-Policy: upgrade-insecure-requests";
    proxy_pass http://tale;
    include /zxk175/nginx/nginx/conf/conf/proxy.conf;
    root    /zxk175/tale/resources;
    index index.jsp index.htm index.html;
}

5.测试Nginx配置和启动

[root@localhost sbin]# ./nginx -t
[root@localhost sbin]# ./nginx

Copyright © 2019- yule263.com 版权所有 湘ICP备2023023988号-1

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务