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

This commit is contained in:
zhengkunwang223 2023-05-04 16:43:10 +08:00 committed by GitHub
parent 8497e239c9
commit 08376e69d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ http {
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" '
'"$http_user_agent" "$http_x_forwarded_for"'; '"$http_user_agent" "$http_x_forwarded_for"';
server_tokens off;
access_log /var/log/nginx/access.log main; access_log /var/log/nginx/access.log main;
access_log /dev/stdout main; access_log /dev/stdout main;
sendfile on; sendfile on;