Nginx reverse proxy guides - Page 2
Run Nginx in front of backend services with upstreams, proxy headers, WebSockets, backend ports, timeouts, and failure checks.
Curated guides
Nginx reverse proxy guides
32 matched guides, best match first. Page 2 of 3.

How to Enable HTTP/2 in Nginx
HTTP/2 in Nginx has a version split that matters before editing a live HTTPS server block. Nginx 1.25.1 introduced the standalone http2 on; directive and deprecated the older...

How to Fix Nginx 413 Request Entity Too Large Errors
Nginx returns 413 Request Entity Too Large when a client sends a request body that is larger than the layer handling the request allows. File uploads are the...

Nginx Location Block Priority Explained
Nginx location block priority explains why a request such as /assets/app.css may be handled by a regex block even when a normal location /assets/ block exists. The matching...

Configure Nginx Upstream Load Balancing
Nginx upstream load balancing lets one public virtual host send traffic to two or more backend servers. It is useful when an application runs on several ports, containers,...

Nginx Access and Error Logs Guide
Nginx access logs and error logs remove guesswork when a site returns the wrong page, hides a static file, breaks a reverse proxy, or fails after a configuration...

How to Fix Nginx 404 Not Found
An Nginx 404 Not Found error means the request reached a web server, but the active Nginx configuration or the upstream application could not match it to a...

Nginx Redirect WWW to Non-WWW or Non-WWW to WWW
An Nginx redirect from www to non-www is usually a server-block decision, not an application rewrite. A small server block can catch www.example.com, send a permanent 301 response,...

Create Nginx Rewrite Rules with return and rewrite
Nginx rewrite rules are useful when a URL move needs more than a one-off redirect, but they can also cause loops, duplicate query strings, or open redirects when...

How to Enable TCP Fast Open in Nginx
Enable TCP Fast Open in Nginx only when the listener can safely accept request data before the TCP handshake fully completes. The workflow is to enable Linux server-side...

Enable Gzip Compression in Nginx
Gzip compression in Nginx reduces text-based HTTP responses before they travel from your server to the browser. HTML, CSS, JavaScript, JSON, XML, and SVG usually shrink enough to...

Configure upgrade-insecure-requests in NGINX
Hard-coded HTTP asset URLs are one of the last problems that surface after an HTTPS migration. WordPress posts, legacy templates, CDN snippets, and database records can still point...

Nginx If Else Logic: Safe If, Map, AND/OR Patterns
Nginx conditionals become tricky when a configuration needs an else branch. The rewrite module provides if, but it does not provide else, else if, and, or or operators....