How to use the gzip format for access_log in the new 1.3.10?

Lorenzo Raffio multiformeingegno at gmail.com
Wed Dec 26 00:27:59 UTC 2012


Oh, I was forgetting: is there a way to globally set to gzip access_log?
Cause I have a lot of websites and it will be better to set this globally
instead of manually changing access_log line for every vhost :)


2012/12/26 Lorenzo Raffio <multiformeingegno at gmail.com>

> Thanks Valentin!
>
> *access_log /var/www/blahblah/logs/access.log combined gzip; worked :)*
>
> **Last question: what does the flush variable do? Does it specify for how much times to keep the logs?
>
>
>
> 2012/12/26 Lorenzo Raffio <multiformeingegno at gmail.com>
>
>> Guys I updated from nginx 1.3.9 to 1.3.10, edited my access_log line and
>> here it is now:
>> *access_log /var/www/blahblah/logs/access.log gzip buffer=32k;*
>>
>> Unfortunately when I restart nginx I get this error:
>> nginx: [emerg] unknown log format "gzip"
>>
>> What am I doing wrong?
>>
>> Thanks in advance.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20121226/eb435007/attachment.html>


More information about the nginx mailing list