Wiki/Nginx: Difference between revisions

No edit summary
No edit summary
Line 121: Line 121:


</syntaxhighlight>
</syntaxhighlight>
== Log Rotation ==
See [[Logging]]
in <code>/etc/logrotate.d/nginx</code>
<pre>
/var/log/nginx/mediawiki* {
  rotate 10
  size 10m
  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]]