My Shitty Code

Embracing the Messiness in Search of Epic Solutions

Tag: Apache HTTP Server

  • Rotating Log Files on Apache HTTP Server

    PROBLEM Consider the following log configuration:- At some point of time, both error.log and access.log are going to get insanely large. SOLUTION To fix this, the logs can be piped (by using |) to Apache HTTP Server’s built-in program called rotatelogs to rotate the log files. For example, the following configuration will create a daily […]