1
0
Fork 0

feat: openresty 隐藏版本号 (#66)

This commit is contained in:
zhengkunwang223 2023-05-04 16:43:10 +08:00 committed by GitHub
parent b2f35b5c30
commit cda525a0a2
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ http {
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
server_tokens off;
access_log /var/log/nginx/access.log main;
access_log /dev/stdout main;
sendfile on;