Skip to content

nginx-log-split

Latest
Compare
Choose a tag to compare
@coder-free coder-free released this 19 Mar 05:08
· 1 commit to master since this release

Nginx with log split based on v1.5.9 released.

You can config the log like this:

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 /home/www/nginx/logs/$year_udf/$month_udf/$day_udf/$date_udf-access.log main;