系统相关
首页 > 系统相关> > nginx安全配置

nginx安全配置

作者:互联网

  #safe_config_star

    add_header X-Xss-Protection "1;mode=block";
    add_header X-Content-Type-Options nosniff;
    
    #add_header X-Frame-Options DENY;
    add_header X-Frame-Options SAMEORIGIN;
    #ljc_安全协议
    ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3; 
    
    if ($request_uri ~* "^/\?"){
          set $id $1;
          rewrite "/" http://www.******.com/updateing.html;
     }

    #safe_config_end

 

标签:safe,header,Frame,配置,nginx,add,安全,config,Options
来源: https://www.cnblogs.com/romanticcrystal/p/16635626.html