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
Paste the error line from your log, or type a word. It searches in your browser; nothing is sent anywhere.
No guide matches “”. Try the FAQ, or email the exact error to admin@proxyforge.tech.
-
Apache 403 “AH01630: client denied by server configuration”: the fix
What
AH01630: client denied by server configurationmeans, the one<Directory>block that fixes most of them, why Debian serves/var/wwwbut not/srv, oldOrder/Allowlines,Require ipbehind Cloudflare, and the 403s that log something else.Tested on the official httpd image and Debian 12 (Apache 2.4.71) with the Config Generator's output, 33 checks
-
Nginx “server” directive is not allowed here: where the block goes
Where a site file goes on Debian and RHEL, five real ways to get
"server" directive is not allowed here(and why it sometimes says"map"or"http"), brace mistakes, and the confusing error an Apache config gives in Nginx.Tested on Nginx 1.30.7 and Debian 12's 1.22.1 with the Config Generator's output, 27 checks
-
Apache Redirect 301 vs RewriteRule: which to use, tested
When to use
Redirect 301and whenRewriteRule, the prefix match that moves more pages than you meant, why both send302without a code, the.htaccessleading-slash trap, and the two rules that loop.Tested on the official httpd image and Debian 12 (Apache 2.4.71) with the Redirect Generator's output, 43 checks
-
Apache “Invalid command 'ProxyPass'”: turn on the proxy modules
What
Invalid command 'ProxyPass'(or'ProxyPreserveHost','RequestHeader') means, the onea2enmodline that fixes it on Debian and Ubuntu, whySyntax OKcan still give a 500, and what's different on RHEL and the official Docker image.Tested on the official httpd image and Debian 12 (Apache 2.4.71) and AlmaLinux 9 (Apache 2.4.62), 34 checks
-
Nginx WebSocket proxy not working: 426, 505 and 60-second drops
Which missing line gives
426 Upgrade Requiredor505 HTTP Version Not Supported, why Nginx 1.30 behaves differently from Debian's 1.22, the 60-second idle timeout, and the Apacheupgrade=websocketfix.Tested on Nginx 1.30.6, Debian 12's Nginx 1.22.1 and Apache 2.4.71 with Python and Node WebSocket servers, 17 checks
-
Nginx and Apache config generators compared: 6 tools tested on real servers
nginxconfig.io and four other free generators, plus ProxyForge, given the same reverse proxy job: which configs passed, which broke the app's paths, Let's Encrypt renewals or WebSockets, and what to check in any generated config.
Tested on Nginx 1.30.6, Debian 12's Nginx 1.22.1 and Apache 2.4.68
-
Nginx proxy_pass trailing slash: why /api/foo becomes /apifoo
A table of what your app receives for each
locationandproxy_passcombination, the/apiredirect, regex locations and Apache'sProxyPass.Tested on Nginx 1.30.6, Debian 12's Nginx 1.22.1 and Apache 2.4.69, 36 checks
-
Apache won't start after adding SSLStaplingCache
Each Apache error matched to its cause, the "Syntax OK" trap, and why Let's Encrypt certificates no longer need OCSP stapling at all.
Tested on Apache 2.4.68 and Nginx 1.30.6 with a real Let's Encrypt certificate, 29 checks
-
Fix Let's Encrypt renewal failing behind an HTTPS redirect
Why Certbot's webroot renewal fails once port 80 redirects to HTTPS, the exact error, and the tested Nginx and Apache fixes.
Tested with Debian 12's Nginx, Apache and Certbot and Let's Encrypt's test CA, 29 checks
-
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