NGINX - /etc/logrotate.d/nginx
Direkt von einer unveränderten Installation gezogen.
Schnellaktionen
📥 Original herunterladen nginxKonfigurationsdatei-Informationen
Authentisch & Original
Unverändert nginx von einer frischen Installation.
Linux-Distributions-Unterstützung
📋 Aktuell angezeigt: Debian 9 (Stretch)
✓ Auch kompatibel:
Debian 10 (Buster),
Debian 11 (Bullseye),
Debian 12 (Bookworm),
Ubuntu 18.04 LTS (Bionic Beaver),
Ubuntu 20.04 LTS (Focal Fossa),
Ubuntu 22.04 LTS (Jammy Jellyfish),
Ubuntu 24.04 LTS (Noble Numbat)
Konfigurationsdatei-Inhalt
19 Zeilen
/var/log/nginx/*.log {
daily
missingok
rotate 14
compress
delaycompress
notifempty
create 0640 www-data adm
sharedscripts
prerotate
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
run-parts /etc/logrotate.d/httpd-prerotate; \
fi \
endscript
postrotate
invoke-rc.d nginx rotate >/dev/null 2>&1
endscript
}
Download-Befehle
nginx •
Lade die 100% original unveränderte Konfigurationsdatei herunter von NGINX
Mit wget:
wget -O nginx.example https://exampleconfig.com/api/v1/config/original/b29112f9480a70fa7de2729ff39923e2?hint=nginx
Mit curl:
curl https://exampleconfig.com/api/v1/config/original/b29112f9480a70fa7de2729ff39923e2?hint=nginx > nginx.example