Nginx reverse proxy guides
Use this path when Nginx sits in front of another service. These guides cover upstreams, proxy headers, WebSockets, backend ports, timeouts, and the checks that make proxy failures easier to isolate.
Curated guides
Nginx reverse proxy guides
32 matched guides, newest first. Page 1 of 3.

How to Create an Nginx Reverse Proxy
A reverse proxy becomes useful as soon as a local app needs a public domain, TLS, and one clean entry point. An Nginx reverse proxy gives private Node.js,...

How to Restore Real Client IPs in Nginx Behind Cloudflare or a Reverse Proxy
Restoring real client IPs in Nginx becomes necessary when Cloudflare, a load balancer, a CDN, or an internal reverse proxy connects to the origin first. Without a trusted...

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

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

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 Configure TLS Settings in Nginx
Default HTTPS snippets become hard to trust when Nginx inherits broad protocol lists from copied server blocks, Certbot includes, or hosting-panel templates. When you configure TLS settings in...

How to Configure Nginx Server Blocks and Virtual Hosts
Nginx server blocks let one Nginx service host multiple domains, subdomains, or applications from separate configuration blocks. Apache users often call this virtual hosting; Nginx documentation usually calls...

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

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

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