Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache 2 Windows rotatelogs help

I've been trying to use rotatelogs.exe on Windows Server 2k to rotate the access.log. But whenever I restart apache it gets an error when reading http.conf

Here is the line:

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

I don't know why it's not working. The paths are correct, common log format is defined. Is my syntax wrong somewhere?

like image 465
Tyler Avatar asked Jul 12 '26 04:07

Tyler


1 Answers

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

like image 130
Jeremy Stein Avatar answered Jul 14 '26 18:07

Jeremy Stein



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!