Apache HTTP Server /etc/logrotate.d/httpd

Original ๐Ÿ“‹ Red Hat Enterprise Linux 9 (Plow) 11 lines

Works On

Viewing:
Red Hat Enterprise Linux 9 (Plow)
Same on:
CentOS Stream 9
Other versions:

Details

Size
11 lines
MD5
f48c31ee7ebf35f96e3f8391955d8fa9
SHA256
a71aa6fa2a14b8835ff8be409c4bd00c015ebc2d749396682fb1ea9ad9ca9bfc

Copy & Paste

curl:
curl https://exampleconfig.com/api/v1/config/original/f48c31ee7ebf35f96e3f8391955d8fa9?hint=httpd
wget:
wget -O httpd https://exampleconfig.com/api/v1/config/original/f48c31ee7ebf35f96e3f8391955d8fa9?hint=httpd

For AI Agents

You are a DevOps agent. Fetch the default Apache HTTP Server config for Red Hat Enterprise Linux 9 (Plow) from https://exampleconfig.com/api/v1/config/original/f48c31ee7ebf35f96e3f8391955d8fa9?hint=httpd. Compare with my current /etc/logrotate.d/httpd and summarize differences and safe changes.

Copy this prompt into Claude, ChatGPT, or other AI assistants.

/etc/logrotate.d/httpd
# Note that logs are not compressed unless "compress" is configured,
# which can be done either here or globally in /etc/logrotate.conf.
/var/log/httpd/*log {
    missingok
    notifempty
    sharedscripts
    delaycompress
    postrotate
        /bin/systemctl reload httpd.service > /dev/null 2>/dev/null || true
    endscript
}

Install Apache HTTP Server

Alpine Linux

sudo apk add apache2

Debian

sudo apt update && sudo apt install apache2

Red Hat Enterprise Linux

sudo yum install httpd

Ubuntu

sudo apt update && sudo apt install apache2

File Location

File Path
/etc/logrotate.d/httpd
Directory
/etc/logrotate.d/
Significance
System-wide configuration directory
Description
Files in /etc/ contain system-wide configuration settings that affect all users.

FAQ

When should I use this httpd?

Restore it. Compare it. Start clean.

How do I restore Apache HTTP Server defaults?

Download, replace, restart.

Is httpd safe for production?

Yes. This is exactly what shipped. Safe starting point.

How does this differ from other OS versions?

Defaults change. This one is specific to Red Hat Enterprise Linux 9 (Plow).

Can I use this for Apache HTTP Server troubleshooting?

Absolutely. Diff this against yours to spot the problem.