Support for Apache 2 Windows rotatelogs

I am trying to use rotatelogs.exe on windows server 2k to rotate access.log. But whenever I restart apache, it gets an error while reading http.conf

Here is the line:

CustomLog "|D:\Apache2\Apache2\bin\rotatelogs.exe D:\Apache2\Apache2\logs\access.log 86400" common

I do not know why it does not work. The paths are correct, the general format of the log is defined. Am I somewhere not my syntax?

+3
source share
2 answers

Try using slashes (/) instead of backslashes (\).

+4
source

Another approach would be to use HalRotateLogs.exe (from Halcyon Logic).

See: www.halcyonlogic.com/index.php#tab-products

Windows (: ), .

.

+1

Source: https://habr.com/ru/post/1725849/


All Articles