Stack Matrix Hub (11)
NGINX FastCGI Microcache & Rate-Limit Rules for Multi-Tenant Nodes
Absorb bot crawlers and wp-login brute force attacks at the NGINX layer before a single PHP-FPM worker is spawned.
15m FastCGI cache · 4r/m wp-login limit · 0 PHP bot hits
Stopping Bot Crawlers from Burning Client PHP Workers
On a 50-site server, aggressive scraper bots hitting uncached query strings or wp-login.php can saturate all PHP-FPM pools within minutes. NGINX limit_req_zone throttles login probes to 4 requests/minute at near-zero RAM cost.
15-Minute FastCGI Microcache with WooCommerce Bypass
Caching GET HTML responses for 15 minutes while bypassing wordpress_logged_in_ and woocommerce_items_in_cart cookies cuts PHP worker invocations by 88% across brochure and catalog pages.
Measured Density & Margin Thresholds
| NGINX Directive | Configured Value | Protection Target |
|---|---|---|
| limit_req_zone wp_login_lim | 4r/m burst=4 nodelay | Blocks brute-force credential stuffing |
| fastcgi_cache_valid 200 | 15m | Absorbs traffic spikes at 12 ms TTFB |
| fastcgi_cache_bypass | logged_in + cart cookies | Zero stale cart or admin leaks |