Wdcp configures and processes site access logs
Wdcp starts from Version 2.2 and supports web Log cutting, saving by day, compressing and packaging, and setting retention and days
Specific settings are as follows:
System settings are shown in figure
In this way, you can automatically cut, compress, and retain the last 7 days.
Note
Here is the general switch settings. Specifically, the log function must be enabled on the site to be effective. If site logs are not enabled, the settings here are ineffective.
At the same time, there is a default log record in the system. If site logs are not enabled, they will be recorded in the default log file. The directory is
/Www/wdlinux/nginx/logs/
/Www/wdlinux/apache/logs/
Disable the default log. You can view the following information:
The default web access log is on.
This log is useless in general, but it is useful for data analysis.
If you don't need it, you can disable it and it will also improve the performance. Here, the default server web default log is disabled.
If logs are still available for the site, the default directory is/www/web_logs.
Site logs are recorded as file names starting with the website Domain Name
Site logs can also be enabled based on the actual situation.
Three methods
1. Directly disable "system settings" in the wdcp background
2. Run/www/wdlinux/tools/web_logs.sh on/off // on or off (after wdcp_v2.5)
3. perform the following manual operations:
How to disable nginx
Sed-I '/log_format/\
Access_log off; '/www/wdlinux/nginx/conf/nginx. conf
How to disable apache
Sed-I's # CustomLog "logs/access_log" common # CustomLog/dev/null common # '/www/wdlinux/apache/conf/httpd. conf
This tutorial is taken from the wdlinux Forum http://www.wdlinux.cn/bbs/. For more information, see!