Commits

Hector Garcia  committed 26221f3

Changed apache conf file to rotatelogs daily

  • Participants
  • Parent commits 6cd77c7

Comments (0)

Files changed (1)

File conf/apache2/nbskel.com

     </Directory>
 
     LogLevel warn
-    ErrorLog  /path/to/project/logs/apache_error.log
-    CustomLog /path/to/project/logs/apache_access.log combined
+    ErrorLog "|/usr/sbin/rotatelogs -l /path/to/project/logs/nbskel.com.apache_error.log.%Y-%m-%d 86400"
+    CustomLog "|/usr/sbin/rotatelogs -l /path/to/project/logs/nbskel.com.apache_access.log.%Y-%m-%d 86400" combined
     
     WSGIDaemonProcess nbskel.com user=www-data group=www-data threads=25
     WSGIProcessGroup nbskel.com