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: CentOS Stream 9
โ Also compatible:
CentOS Stream 10,
Red Hat Enterprise Linux 9 (Plow),
Configuration File Content
15 lines
/var/log/nginx/*.log {
create 0640 nginx root
daily
rotate 10
missingok
notifempty
compress
delaycompress
sharedscripts
postrotate
/bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true
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/a92ea25ba27074c141cb7d3ce8090261?hint=nginx
Using curl:
curl https://exampleconfig.com/api/v1/config/original/a92ea25ba27074c141cb7d3ce8090261?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 ยท CentOS Stream 9
/etc/logrotate.d/nginx
Apache HTTP Server ยท CentOS Stream 9
/etc/logrotate.d/nginx
Apache HTTP Server ยท CentOS Stream 9