Thank you, here is the diff for newsyslog.conf:
1c1 < # $OpenBSD: newsyslog.conf,v 1.29 2011/04/14 20:32:34 sthen Exp $ --- > # $OpenBSD: newsyslog.conf,v 1.30 2012/12/27 02:16:14 sthen Exp $ 17a18,19 > #/var/www/logs/access.log 644 7 * 24 ZB "kill -s USR1 `cat /var/run/nginx.pid`" > #/var/www/logs/error.log 644 7 * 24 ZB "kill -s USR1 `cat /var/run/nginx.pid`" On Wed, Dec 26, 2012 at 11:49 PM, Antoine Jacoutot <ajacou...@bsdfrog.org>wrote: > On Wed, Dec 26, 2012 at 11:02:56PM +0100, Paolo Aglialoro wrote: > > Hi misc! > > > > Considering that with 5.2 nginx is going to be (already is?) the official > > http server (I'm using it with joy, I like its minimalistic approach), is > > there some officially recommended way to rotate the logs in > /var/www/logs/ > > which are getting bigger and bigger? > > Just use newsyslog(8) and send SIGUSR1 to /var/run/nginx.pid. > > > > Btw, as apache is still present in faq, is any man nginx.conf / faq entry > > planned or the only nginx.org is THE doc resource? > > > > Thanks > > > > -- > Antoine