Web site If the flow is relatively large, then nginx recorded errors, especially the access log is very much, on the space run a few months after the full, causing the server to run abnormally.
To avoid this, you can turn off Nginx errors and access records, turn off access records individually, and filter out certain accesses that you do not need to record.
First, you can turn off access logging in the http://www.aliyun.com/zixun/aggregation/14840.html "> Virtual host configuration file:
Access_log off;
If you want to target files for certain suffixes without accessing records, you can configure:
Location ~ *\. (Js|jpg| Jpg|jpeg| Jpeg|css|bmp|gif| GIF) $
{
Access_log off;
}
If you need to turn off error handling, do not configure this:
Error_log off;
This will not really close the record, Nginx will be recorded in a file called off, does not play any role.
This configuration is required:
Error_log/dev/null;
If you just don't want to turn off record very serious errors, you can configure this:
Error_log/var/log/nginx/error_log Crit;
From Nginx Chinese web: http://www.nginx.com.cn/?p=356