Nginx troubleshooting guides - Page 3
Troubleshoot Nginx with logs, upstream errors, redirects, headers, permissions, request limits, and config checks.
Curated guides
Nginx troubleshooting guides
32 matched guides, best match first. Page 3 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...

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...

Nginx try_files Directive Explained
Nginx try_files decides what happens after a request matches a server or location block. It can serve a real file, check for a directory, send the request to...

Nginx Root vs Alias: Path Mapping and Troubleshooting
Nginx root and alias both point requests at files on disk, but they build the final filesystem path in different ways. Use root when the URI path matches...

How to Fix Nginx 403 Forbidden
An Nginx 403 Forbidden error means the request reached the server, but Nginx or an upstream layer refused to serve the requested resource. The most common causes are...

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,...

Password Protect Nginx with Basic Authentication
Basic Authentication is useful when a staging site, preview build, private download area, or low-traffic admin path needs a quick gate before a full application login exists. To...

How to Configure Browser Caching for Static Assets in NGINX
Browser cache headers decide whether visitors download the same CSS, JavaScript, font, and image files on every page view or reuse files they already have. To configure browser...