When should I use this apache2?
Use it to restore a missing default, confirm what shipped, or diff against your current Apache HTTP Server config.
/var/log/apache2/*.log {
daily
missingok
rotate 14
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
prerotate
if [ -d /etc/logrotate.d/httpd-prerotate ]; then
run-parts /etc/logrotate.d/httpd-prerotate
fi
endscript
postrotate
if pgrep -f ^/usr/sbin/apache2 > /dev/null; then
invoke-rc.d apache2 reload 2>&1 | logger -t apache2.logrotate
fi
endscript
}
curl https://exampleconfig.com/api/v1/config/original/a38d9e980faebcda9a1998fd0f90b69e?hint=apache2
wget -O apache2 https://exampleconfig.com/api/v1/config/original/a38d9e980faebcda9a1998fd0f90b69e?hint=apache2
<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/a38d9e980faebcda9a1998fd0f90b69e?hint=apache2' /><config><app>Apache HTTP Server</app><os>Debian 13 (Trixie)</os><location>/etc/logrotate.d/apache2</location><lines>20</lines><md5>a38d9e980faebcda9a1998fd0f90b69e</md5><sha256>19c251cf075acba0852a0bec3b3ca48dbe9ab988c1c541ef80bbf7a6052918ef</sha256></config></prompt>
Paste into Claude, ChatGPT, or any AI assistant.
sudo apk add apache2
sudo apt update && sudo apt install apache2
sudo yum install httpd
sudo apt update && sudo apt install apache2
When should I use this apache2?
Use it to restore a missing default, confirm what shipped, or diff against your current Apache HTTP Server config.
How do I restore Apache HTTP Server defaults?
Download the file, back up the current one in /etc/logrotate.d/apache2, replace it, then reload or restart Apache HTTP Server.
Is apache2 safe for production?
It is the vendor default for Debian 13 (Trixie). Treat it as a baseline and review security and performance settings before production use.
How does this differ from other OS versions?
Defaults vary by distro and version. This copy matches Debian 13 (Trixie).
Can I use this for Apache HTTP Server troubleshooting?
Yes. Diff it against yours to find drift, then restore only the sections you need.