Tagged articles
rewrite
16 articles · Page 1 of 1

21CTOSep 7, 2026 · Industry Insights
pnpm v12 has been fully rewritten in Rust, delivering up to 90% faster installation times while maintaining full backward compatibility with pnpm v11 commands, flags, settings, and lockfile format, and introduces a new Rust-based registry service pnpr for even greater performance.
JavaScriptRustbenchmark
0 likes · 7 min read


TonyBaiAug 15, 2026 · Backend Development
The article analyzes the three‑year Rust rewrite movement, presenting concrete performance gains, binary‑size challenges, new bugs, learning‑curve costs, and real‑world cases of both success and abandonment to help developers decide whether a Rust rewrite is worthwhile.
Binary SizeConcurrencyProject Migration
0 likes · 15 min read

The article explains how Nginx's try_files directive, introduced after version 0.7, attempts to serve static files by checking the $uri and $uri/ variables, falls back to a named location when files are missing, and can replace traditional rewrite rules for more efficient request handling.
BackendConfigurationnamed location
0 likes · 4 min read

The article explains that Nginx processes requests in multiple phases, not in the order written in the configuration, showing how rewrite and content phases affect variable assignments and why only the last set value is output.
ConfigurationRequest Processingcontent
0 likes · 10 min read


21CTOMar 5, 2023 · Backend Development
This article details the motivations, challenges, and outcomes of rewriting the KCL compiler from Python to Rust, highlighting significant performance gains, reduced bugs, memory savings, and the learning curve associated with adopting Rust for a large‑scale systems project.
CompilerKCLRust
0 likes · 10 min read

This article explains Redis's Append‑Only File (AOF) rewrite mechanism, detailing how the rewrite buffer is defined, the fork‑based background process, inter‑process pipe communication, and the advantages and drawbacks of AOF rewriting, accompanied by relevant source code snippets.
AOFAppend Only FileRedis
0 likes · 20 min read

This article explains why short URLs are useful, describes the principle of mapping short codes to original URLs, and provides two complete PHP implementations—one using MySQL for storage and another using an INI file—along with the necessary rewrite rules for Apache and Nginx.
BackendMySQLPHP
0 likes · 6 min read

This article provides a step‑by‑step tutorial on configuring Nginx rewrite rules, implementing anti‑hotlinking protection, separating static and dynamic resources, and building a high‑availability architecture using Keepalived with detailed code examples and deployment instructions.
ConfigurationKeepalivedanti-hotlinking
0 likes · 23 min read

This guide explains Nginx rewrite syntax and flags, provides practical rewrite examples, demonstrates how to configure anti‑hotlinking, outlines static‑dynamic resource separation with caching, and shows step‑by‑step installation and configuration of Keepalived for high‑availability Nginx clusters, including required scripts and host settings.
High AvailabilityKeepalivedanti-hotlinking
0 likes · 27 min read

This article provides a comprehensive step‑by‑step guide on configuring Nginx rewrite rules, implementing anti‑hotlink protection, separating static and dynamic resources, and setting up Keepalived for high‑availability load balancing, complete with example configurations and shell scripts.
Keepalivedanti-hotlinkinghigh-availability
0 likes · 21 min read

This article provides a step‑by‑step tutorial on configuring Nginx rewrite rules, implementing anti‑hotlinking protection, separating static and dynamic resources, and setting up Keepalived for high‑availability, complete with detailed code examples and deployment instructions.
Keepalivedanti-hotlinkingload-balancing
0 likes · 22 min read

This article explains why ThinkPHP route errors occur, demonstrates how request methods and missing module prefixes affect URLs, and provides a step‑by‑step guide to fixing them by adding the correct entry script and configuring a rewrite rule in an nginx.htaccess file.
PHPThinkPHPrewrite
0 likes · 2 min read

This guide explains HTTPS and SSL fundamentals, shows how to generate certificates with OpenSSL, configures Nginx for secure HTTPS, details the rewrite module including break, if, return, and set directives, demonstrates read‑write separation using WebDAV, and provides anti‑hotlinking techniques with valid_referers.
HTTPSSSLServer configuration
0 likes · 16 min read

This tutorial walks through creating a self‑signed CA, generating keys and CSR, signing certificates, configuring nginx.conf for SSL, using the rewrite module, setting up fastcgi with PHP‑FPM, and testing the entire HTTPS setup on a Linux server.
HTTPSPHP-FPMSSL
0 likes · 7 min read

This guide explains how Nginx rewrite directives perform URL redirection without changing the browser address, covering syntax, placement rules, common use cases, detailed examples, and the meanings of flags like last, break, redirect, and permanent.
BackendConfigurationrewrite
0 likes · 4 min read

This article explains how Nginx normalizes incoming URLs for location matching but not for rewrite targets, causing unexpected mismatches when extra slashes appear, and shows how to avoid the pitfall with proper configuration.
locationrewriteserver-configuration
0 likes · 2 min read
