Update nginx/nginx.conf
This commit is contained in:
parent
e0a18be8ca
commit
a6421b2bff
1 changed files with 6 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
user nginx;
|
||||
worker_processes auto;
|
||||
|
||||
error_log /dev/null; # /var/log/nginx/error.log notice;
|
||||
error_log /var/log/nginx/error.log notice;
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
events {
|
||||
|
@ -14,10 +14,12 @@ http {
|
|||
default_type application/octet-stream;
|
||||
|
||||
log_format main '$remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
'$status $body_bytes_sent bytes "$http_referer" '
|
||||
'"$http_x_forwarded_for"';
|
||||
|
||||
# While I removed PII from the above log format, still better not logging
|
||||
access_log /dev/null main; # /var/log/nginx/access.log main;
|
||||
|
||||
access_log /dev/null main;
|
||||
|
||||
server_tokens off;
|
||||
|
||||
|
|
Loading…
Reference in a new issue