Nginx troubleshooting guides - Page 2
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 2 of 3.

Enable Nginx open_file_cache for Static Files
Repeated static-file requests can waste time on the same filesystem checks: open the file, confirm it still exists, read its size, and check its modification time. Nginx open_file_cache...

How to Configure NGINX Security Headers
Security headers tell browsers how to handle HTTPS, framing, MIME sniffing, referrer data, resource loading, and browser APIs before application code runs. Configuring NGINX security headers is usually...

How to Redirect URLs in Nginx
Redirects are the cleanup layer for old URLs, domain moves, HTTPS enforcement, and canonical host changes. In NGINX, most URL redirects should use return because it sends the...

Configure Nginx Rate Limiting with limit_req
A login form, search endpoint, or API route can overload a backend long before the rest of the site looks busy. Nginx rate limiting caps request frequency at...

How to Configure CORS in Nginx
CORS becomes a server problem as soon as a browser app at one origin needs to read an API, font, image, or JSON response from another origin. To...

How to Allow or Block IP Addresses in Nginx
IP-based access rules are useful when an admin path, staging site, partner endpoint, or private dashboard should not be reachable by every visitor that can reach the Nginx...

How to Configure Nginx Proxy Cache
Nginx proxy cache stores selected upstream responses on disk so repeated requests can be served from Nginx instead of hitting the backend every time. It is useful for...

How to Configure an Nginx WebSocket Proxy
Nginx WebSocket proxying breaks when a normal Nginx reverse proxy handles regular HTTP requests but does not pass the upgrade handshake to the backend. The page may load,...

Nginx proxy_pass Trailing Slash Explained
Nginx proxy_pass path handling is one of the easiest ways to create a reverse proxy that looks correct but sends the wrong URI to the backend. The small...

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

Enable the Nginx Sendfile Directive
Large static-file responses can make Nginx spend CPU time copying data it does not need to inspect. To enable sendfile in Nginx, set the sendfile directive so direct...

How to Change NGINX Ports
Changing the Nginx port starts with the listen directive inside each server block, not with a global service setting. To change Nginx port 80 to 8080, update every...