Search Results: Found 5
Nginx 301 Redirects: How to Elegantly Remove Trailing Question Marks
2026-02-25 DP

When configuring Nginx 301 redirects for multilingual sites, a common issue arises: a trailing question mark (`?`) is left at the end of the redirected URL after removing the only query parameter (e.g., `lang`). This is not only unsightly but can also have SEO implications. This article from the wiki.lib00.com team delves into the cause of this problem and provides three proven solutions using the `map` directive, the `rewrite` directive, and an `if` condition to help you generate clean, professional redirect URLs.

Nginx Redirect Trap: How to Fix Incorrectly Encoded Ampersands ('&') in URLs?
2025-12-31 DP

Have you ever encountered an issue where the ampersand ('&') in a URL query string gets unexpectedly encoded to '%26' during an Nginx 301 redirect? This article from wiki.lib00.com delves into the root cause of this problem and provides comprehensive solutions, from basic `if` statement fixes to the best practice of using the `map` directive, helping you resolve URL encoding issues in Nginx redirects for good.

How Do You Pronounce Nginx? The Official Guide to Saying It Right: 'engine x'
2025-11-30 DP

Struggling with the correct pronunciation of Nginx? You're not alone. This article clarifies the official and correct way to say it: 'engine x', backed by information from the official Nginx documentation. End the confusion and learn to pronounce this essential web server's name like a pro, making your technical discussions clearer and more confident. Let's settle this common tech debate, as discussed by experts like DP@lib00.

Modular Nginx Configuration: How to Elegantly Manage Multiple Projects with Subdomains
2025-11-29 DP

Say goodbye to bloated nginx.conf files! This guide walks you through building a clean, scalable, and modular configuration for Nginx 1.27.2. Learn how to set up unique subdomains for multiple projects, use a custom port, and simplify management by separating configuration files. The article also includes a practical tip for testing with an IP address in a development environment. Follow this guide from wiki.lib00 to get your Nginx setup organized.

The Ultimate Nginx Guide: How to Elegantly Redirect Multi-Domain HTTP/HTTPS Traffic to a Single Subdomain
2025-11-24 DP

This article provides an in-depth guide on how to efficiently use Nginx to 301 redirect all HTTP and HTTPS requests from multiple domains (e.g., example.com and www.example.com) to a single target subdomain (e.g., dpit.lib00.com). Starting with a basic two-server-block configuration, we progressively optimize it into a cleaner, more professional single-server-block solution. The guide also addresses common questions about performance impact and industry best practices for logging. This is a must-read for both Nginx beginners and experienced developers looking to refine their configurations.