1,095
edits
No edit summary |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 121: | Line 121: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Log Rotation == | |||
See [[Logging]] | |||
in <code>/etc/logrotate.d/nginx</code> | |||
<pre> | |||
/var/log/nginx/mediawiki* { | |||
rotate 50 | |||
size 100M | |||
dateext | |||
dateformat -%Y-%m-%d | |||
missingok | |||
compress | |||
sharedscripts | |||
postrotate | |||
[ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid` | |||
endscript | |||
} | |||
</pre> | |||
[[Category:Nginx]] | [[Category:Nginx]] | ||
[[Category:Wiki]] | [[Category:Wiki]] |