Tokyoahead

News
News
Architecture
Architecture
Asian Cooking
Asian Cooking
Finance
Finance
Galapagos
Galapagos
Technology
Technology
Trips & Sights
Trips & Sights
  

How to setup rotating logs with "Rotatelogs" under Windows

When you setup the rotating of logs under windows with Apache, make sure that you have to "Rotatelogs.exe" in your "Bin"-Directory of your webserver.

Then, exit the httpd.conf according to the manual of apache. The major change that you have to do is the paths to the logfiles and the .exe:

CustomLog "|w:/server/apache2/bin/rotatelogs.exe W:/home/tokyo/weblogs/tokyoahead.local.%Y-%m-%d-%H_%M_%S.log 86400 120" combined

Also make sure that you put this in the correct environment. If you have virtual hosts, it has to be saved there, NOT in the common logfile definition!

Last Update: 2004-11-03 11:26:54
 FAQ > Server Software  > Apache Webserver