update 隐藏 nginx 版本号以增强安全性

This commit is contained in:
疯狂的狮子Li
2025-09-26 11:21:04 +08:00
parent 5ecb06f2d9
commit 905cf33897

View File

@@ -16,6 +16,8 @@ http {
client_max_body_size 100m;
# 开启静态资源压缩
gzip_static on;
# 隐藏 nginx 版本号,防止暴露版本信息
server_tokens off;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '