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.

Nginx logo with file caching and database icons representing open file cache configuration

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

Updated ( Published )

NGINX security headers diagram showing Strict-Transport-Security, Content-Security-Policy, and X-Content-Type-Options flowing from NGINX hexagon to security shield with padlock

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

Updated ( Published )

NGINX logo alongside browser windows with redirect arrows showing URL redirection

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

Updated ( Published )

Nginx logo with rate limiting gauge and traffic barrier protecting server infrastructure

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

Updated ( Published )

NGINX CORS headers diagram showing allowed and blocked browser responses from an origin request

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

Published

Nginx access control diagram showing allowed and blocked IP traffic to a server

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

Published

Nginx logo connected to proxy cache and upstream response panels

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

Published

Nginx logo with WebSocket routing diagram connecting clients to backend services

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

Published

Nginx logo with 404 warning and file routing diagram for troubleshooting Not Found errors

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

Published

Nginx logo with files transferring directly to a server representing sendfile zero-copy optimization

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

Updated ( Published )

Nginx logo with a document showing a port change from 80 to 8080 and network gear icons representing port configuration and routing.

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

Updated ( Published )