# Wie man den Rotationszeitraum der nginx-Protokolle ändert

**URL:** <https://meta.discourse.org/t/how-to-change-nginx-log-rotation-period/43453>\
**Category:** Self-hosting\
**Created:** [29. April 2016 um 13:48 UTC](https://meta.discourse.org/t/how-to-change-nginx-log-rotation-period/43453 "2016-04-29T13:48:57Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![gearoid](https://avatars.discourse-cdn.com/v4/letter/g/9f8e36/32.png) [@gearoid](https://meta.discourse.org/u/gearoid)\
**Post date:** [3. Mai 2016 um 08:28 UTC](https://meta.discourse.org/t/how-to-change-nginx-log-rotation-period/43453/5 "2016-05-03T08:28:17Z")

</div>

Just in case I’ve got the wrong end of the stick, I need to make my change in the container in `/etc/logrotate.d/nginx` ?

If so - when I rebuild the container the configuration change will be lost. It’s not persisted outside the container like configuration I specify in app.yml. I need to write and run a script of my own to maintain my configuration.

---

_[View the full topic](https://meta.discourse.org/t/how-to-change-nginx-log-rotation-period/43453)._
