conf/nginx: 配置日志记录
- 在 nginx.conf.no_office.template 和 nginx.conf.template 中添加日志配置 - 关闭访问日志记录 - 设置错误日志级别为 warn
This commit is contained in:
parent
4bea14c366
commit
0d07b963b7
@ -23,6 +23,10 @@ http {
|
||||
keepalive_timeout 65;
|
||||
#gzip on;
|
||||
|
||||
# 日志
|
||||
access_log off;
|
||||
error_log /var/log/nginx/error.log warn;
|
||||
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
'' close;
|
||||
|
||||
@ -17,6 +17,10 @@ http {
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
# 日志
|
||||
access_log off;
|
||||
error_log /var/log/nginx/error.log warn;
|
||||
|
||||
# 全局性能优化
|
||||
sendfile on;
|
||||
tcp_nopush on;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user