Nginx Stream Module: A Quick Guide
A quick guide to the Nginx Stream module: enabling it, proxying and load balancing TCP/UDP traffic, TLS termination, and how it differs from the HTTP module.
A quick guide to the Nginx Stream module: enabling it, proxying and load balancing TCP/UDP traffic, TLS termination, and how it differs from the HTTP module.
Nginx is renowned for its efficiency and versatility in serving web content. However, optimizing its configuration is crucial to ensure optimal performance. This log outlines key techniques to optimize Nginx configuration for enhanced performance, from keepalive and compression to TLS, HTTP/2, HTTP/3 and upstream keepalive.
Rails page caching and nginx make a natural pair: nginx serves the HTML files Rails writes to public/ straight from disk, and its proxy cache (stored on disk, indexed in shared memory) holds every other public response. In this guide, we’ll configure both, with a safe cache key, session-cookie bypass, cache locking and stale serving.
In modern web application environments, load balancing plays a critical role in distributing traffic across multiple servers to ensure optimal performance, reliability, and scalability. Load balancing techniques and tools are deployed at various network layers, each with its own set of advantages and disadvantages. In this article, we’ll explore different types of load balancing at different network layers and provide examples.
In the realm of web servers, accurate logging of client IP addresses is crucial for security, analytics, and compliance purposes. However, when Nginx is deployed behind a reverse proxy, load balancer, or CDN, the IP addresses logged may not reflect the actual client IP addresses. This is where the Nginx Real IP module comes into play.