NGINX Configuration - Linux
/etc/logrotate.d/nginx
Quick Actions
๐ฅ Download Original nginxConfiguration File Information
Authentic & Original
Unaltered nginx from fresh installation.
Linux Distribution Support
๐ Currently viewing: Ubuntu 22.04 LTS (Jammy Jellyfish)
โ Also compatible:
Debian 10 (Buster),
Debian 11 (Bullseye),
Debian 12 (Bookworm),
Debian 9 (Stretch)
Ubuntu 18.04 LTS (Bionic Beaver),
Ubuntu 20.04 LTS (Focal Fossa),
Ubuntu 24.04 LTS (Noble Numbat)
Configuration File Content
19 lines
/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 Commands
nginx โข
Download the 100% original unaltered configuration file pulled from NGINX
Using wget:
wget -O nginx.example https://exampleconfig.com/api/v1/config/original/b29112f9480a70fa7de2729ff39923e2?hint=nginx
Using curl:
curl https://exampleconfig.com/api/v1/config/original/b29112f9480a70fa7de2729ff39923e2?hint=nginx > nginx.example
Related Configuration Files
/etc/logrotate.d/nginx
NGINX ยท Debian 9 (Stretch)
/etc/logrotate.d/nginx
NGINX ยท Debian 9 (Stretch)
/etc/logrotate.d/nginx
NGINX ยท Debian 9 (Stretch)
/etc/logrotate.d/nginx
Apache HTTP Server ยท Ubuntu 22.04 LTS (Jammy Jellyfish)
/etc/logrotate.d/nginx
Apache HTTP Server ยท Ubuntu 22.04 LTS (Jammy Jellyfish)
/etc/logrotate.d/nginx
Apache HTTP Server ยท Ubuntu 22.04 LTS (Jammy Jellyfish)