summarylogtreecommitdiffstats
path: root/nginx.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'nginx.logrotate')
-rw-r--r--nginx.logrotate8
1 files changed, 8 insertions, 0 deletions
diff --git a/nginx.logrotate b/nginx.logrotate
new file mode 100644
index 000000000000..610444d5a3cd
--- /dev/null
+++ b/nginx.logrotate
@@ -0,0 +1,8 @@
+ /var/log/nginx/*log /var/log/nginx/*/*log {
+ daily
+ create 640 http log
+ compress
+ postrotate
+ [ ! -f /run/nginx.pid ] || kill -USR1 `cat /run/nginx.pid`
+ endscript
+ }