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