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.

July 20, 2024 · 4 min · 707 words · Bá Tới

Optimizing Nginx Configuration for Enhanced Performance

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.

April 11, 2022 · Updated October 29, 2026 · 9 min · 1759 words · Bá Tới

Page caching - Combining Page Caching in Rails with Nginx Memory Caching

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.

August 7, 2021 · Updated October 29, 2026 · 6 min · 1116 words · Bá Tới

Understanding Load Balancing at Different Network Layers: A Comprehensive Overview

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.

July 16, 2020 · Updated October 29, 2026 · 3 min · 622 words · Bá Tới

Understanding Nginx Real IP Module: Importance and Configuration

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.

March 7, 2020 · Updated October 29, 2026 · 7 min · 1374 words · Bá Tới