mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-24 12:16:38 +08:00
update 隐藏 nginx 版本号以增强安全性
This commit is contained in:
parent
f616c6931c
commit
483c4e6d0a
@ -16,6 +16,8 @@ http {
|
|||||||
client_max_body_size 100m;
|
client_max_body_size 100m;
|
||||||
# 开启静态资源压缩
|
# 开启静态资源压缩
|
||||||
gzip_static on;
|
gzip_static on;
|
||||||
|
# 隐藏 nginx 版本号,防止暴露版本信息
|
||||||
|
server_tokens off;
|
||||||
|
|
||||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||||
'$status $body_bytes_sent "$http_referer" '
|
'$status $body_bytes_sent "$http_referer" '
|
||||||
|
Loading…
Reference in New Issue
Block a user