httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Oliver.Scha...@unilog.de>
Subject [users@httpd] RE:[users@httpd] huge mod_jk.log
Date Tue, 21 Feb 2006 09:08:22 GMT

>Hello
>I got mod_jk working, hurrah, however I am serving
>large files and the mod_jk.log file is huge.  When it
>is over about 100MB Apache will not start up.  Clear
>out the file and it starts fine.
>How do I configure Apache to log as tersely as
>possible to mod_jk.log?

You can use rotatelogs
http://httpd.apache.org/docs/2.2/programs/rotatelogs.html
This works for JkLogFile too

Example:
JkLogFile     "|/path/to/apache/bin/rotatelogs /path/to/apache/logs/mod_jk.log.%Y-%m-%d-%H_%M_%S
5M"
The rotation is here  after 10 MB with a timestamp of mod_jk.log.2006-02-23-12_00_00. 

If you are using 2.2 you can use mod_proxy_ajp 
http://httpd.apache.org/docs/2.1/mod/mod_proxy_ajp.html

bye 
Oliver

Mime
View raw message