mod_rewrite load average addon patch for Apache 2.2.19

mod_rewrite load average addon patch for Apache 2.2.19

Kolega Boris Pisarčík napísal jednoduchý patch do mod_rewrite Apache modulu umožňujúci URL rewrite v závislosti od “load average”, teda  vytaženia samotného serveru. V prípade veľkého vyťaženia webového serveru je možné prestať prijímať ďalšie žiadosti, zobraziť používateľom statické HTML o preťažení a pokračovať v obsluhe hneď ako zaťaženie serveru poklesne. Patch je k dispozícii tu.

LOAD0 - system load average for last minute

LOAD1 - system load average for last 5 minutes

LOAD2 - system load average for last 15 minutes

Format of all the three is "nnnnnnn.dd", with 2 decimal numbers.

Example usage: rewrite php requests into custom static html in case
system load for last 1 minute is greater than 4.0 to offload server
from new requests.

RewriteCond %[LOAD0] !^[0-4]\..*

RewriteRule .* /static_branded_page.html [L]

more insights

Critical security problem in UpdraftCentral: an attacker holding the service’s keys planted a backdoor on our websites

On the night of 19 October 2026 an attacker abused UpdraftCentral, the remote management service built into UpdraftPlus, a backup plugin with more than 4 million installations, and planted a backdoor on two of our three websites. Our sites were fully up to date and the fault was not on our side: the attacker signed the commands with valid keys that the UpdraftCentral Cloud service generates and keeps. We publish an analysis of the backdoor, indicators of compromise and a way to check your own sites. The vendor later confirmed that the attacker obtained the teamupdraft.com customer database, including UpdraftCentral keys.

Read more >