Disable logging and server tokens

This commit is contained in:
schmelczerandras 2020-09-11 20:41:12 +02:00
parent 39a6ee9a20
commit 23a6b473ae

View file

@ -2,6 +2,7 @@ user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
@ -9,14 +10,12 @@ events {
}
http {
server_tokens off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
access_log off;
sendfile on;
sendfile_max_chunk 1m;