nginx安全配置

nginx安全配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
http { port_in_redirect off; }
http { server_tokens off; } # 隐藏版本号
http { add_header X-Frame-Options SAMEORIGIN; }
http { add_header X-XSS-Protection "1; mode=block"; }
http { add_header X-Content-Type-Options nosniff; }
http { autoindex off; }


server {
client_body_timeout ...
client_header_timeout 60s
keepalive_timeout ...
send_timeout 60;
}
打赏
  • 版权声明: 本博客所有文章除特别声明外,著作权归作者所有。转载请注明出处!
  • Copyrights © 2018-2024 Outsrkem
  • 访问人数: | 浏览次数:

      请我喝杯咖啡吧~

      支付宝
      微信