首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    启用HSTS并加入HSTS Preload List-附删除HSTS方法

    LoadModule headers_module modules/mod_headers.so #然后对应站点VirtualHost里面插入HSTS响应头信息 Header always set Strict-Transport-Security...服务器中的配置最为简单,只需要编辑 Nginx 配置文件(如:/usr/local/nginx/conf/nginx.conf)将下面行添加到你的 HTTPS 配置的 server 块中即可: add_header Strict-Transport-Security...preload"; 如果你发现直接添加在 server 块中无效的情况,你可以试试直接插入到 location ~ *php 内: location ~ [^/]\.php(/|$) { add_header Strict-Transport-Security...: server.modules += ( "mod_setenv" ) $HTTP["scheme"] == "https" { setenv.add-response-header = ( "Strict-Transport-Security...1.4  PHP通用配置 HSTS 方法 将以下代码添加到网站根目录 index.php 中或者header.php中 header("Strict-Transport-Security: max-age

    2.9K20
    领券