Fully block Server header

This commit is contained in:
Jake Howard
2023-12-16 21:57:19 +00:00
parent cfb498d7c6
commit 46eda36515
3 changed files with 16 additions and 0 deletions

View File

@ -2,6 +2,8 @@ worker_processes auto;
error_log /var/log/nginx/error.log;
load_module /usr/lib/nginx/modules/ngx_http_headers_more_filter_module.so;
pcre_jit on;
events {
@ -13,6 +15,7 @@ http {
default_type application/octet-stream;
server_tokens off;
more_clear_headers "Server";
types_hash_max_size 2048;
types_hash_bucket_size 128;