aboutsummaryrefslogtreecommitdiff
path: root/templates/vserver.d/etc/logrotate.d/apache
diff options
context:
space:
mode:
Diffstat (limited to 'templates/vserver.d/etc/logrotate.d/apache')
-rw-r--r--templates/vserver.d/etc/logrotate.d/apache11
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/vserver.d/etc/logrotate.d/apache b/templates/vserver.d/etc/logrotate.d/apache
new file mode 100644
index 0000000..f31fbe2
--- /dev/null
+++ b/templates/vserver.d/etc/logrotate.d/apache
@@ -0,0 +1,11 @@
+/var/log/apache/access_log /var/log/apache/error_log {
+ monthly
+ nomail
+ compress
+ create 0664 root root
+ rotate 12
+ postrotate
+ /etc/rc.d/rc.httpd restart > /dev/null
+ endscript
+}
+