httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [users@httpd] Help on invoking gzip with the CustomLog directive
Date Sun, 09 May 2004 15:37:14 GMT
Hello all:

I have an interesting problem, I would like Apache to gzip access logs in
real time to each a virtual domain's perspective access_log file.

This appears to be possible using the CustomLog directive by piping to
gzip [], however I have
yet to have it work for me on my own implementation.

This is my current CustomLog directive:
CustomLog "|/usr/bin/gzip -c >>
/home/http/project87/" common

-gzip does live in /usr/bin
-access_log.gz does exist and is writable by apache.

Apache's error_log shows the following:
piped log program '/usr/bin/gzip -c >>
/home/http/project87/' failed unexpectedly
gzip: >>: No such file or directory

It appears that the gzip process Apache has invoked is complaining that
there it can't find the file ">>"   This would indicate to me that Apache
is not correctly piping log data to gzip.   Any ideas on how to fix this?

I am running Apache/2.0.48 built from source on Slackware 9.1 on Linux 2.6.5


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message