Guides
Tested fixes and examples for Nginx and Apache. Each guide starts with the short answer, quotes errors exactly as the server prints them, and was checked on real servers before it went up. How it's tested
-
Fix ERR_TOO_MANY_REDIRECTS behind Cloudflare
Why Cloudflare's Flexible mode makes your HTTPS redirect loop, how to move to Full (strict), and why Chrome can keep showing the error after the fix.
Tested with ProxyForge's Nginx and Apache output and a stand-in for Cloudflare, 43 checks, plus Chromium 153
-
Fix 413 Request Entity Too Large on Nginx and Apache
Which limit refused the upload: Nginx's 1 MB
client_max_body_size, Apache'sLimitRequestBody, PHP's upload limits or Cloudflare, and how to raise each one.Tested on the nginx image, Debian 12 and Apache 2.4.68, 45 checks
-
Fix Nginx 502 Bad Gateway behind a reverse proxy
Match your error log line to its cause: nothing listening, an app bound to 127.0.0.1, a crash, headers too big, PHP-FPM sockets, SELinux, and 504 timeouts.
Tested on the nginx image and Debian 12, 37 checks (SELinux not lab-tested)
-
nginx -s reload said OK, but my change didn't apply
Why a reload can report success while Nginx keeps the old config, the error log line for each of five causes, and how to check a reload worked.
Tested on the nginx image, Debian 12 and AlmaLinux 9, 95 checks
-
Nginx config file examples, tested on real servers
Complete configs for a reverse proxy, a static site, a PHP-FPM app and WordPress, with HTTPS, HTTP/2 and Let's Encrypt renewals, plus what to change on Debian and RHEL.
Tested on the nginx image, Debian 12 and AlmaLinux 9, 141 checks
-
Fix "unknown directive http2" in Nginx
Why
nginx -trejectshttp2 on;, which Nginx each Linux distro installs, and the line that works on yours.Tested on Nginx 1.24 to 1.31 and eight Linux distros, 128 checks
-
Nginx rewrite vs return 301: tested redirect examples
When to use
return 301and when you needrewrite, with examples for HTTPS, www, domain moves and moved folders, plus five traps.Tested on Nginx 1.27, 38 checks
-
Fix "ProxyPass not allowed here" in Apache .htaccess
Why ProxyPass fails in
.htaccess, the[P]flag that works there, and tested virtual host templates.Tested on Apache 2.4, 51 checks
Looking for a quick answer? The FAQ covers more errors in a few lines each. Want a config written for you? Start with the Config Generator.
How to use ProxyForge · FAQ: common errors · What's new · About · Privacy