Common Built-in Variables in the Nginx HTTP Module

Common Built-in Variables in the Nginx HTTP Module

Server Related $server_addr: Server address $server_name: Virtual host name (configured by the server_name directive) $server_port: Server port $document_root: Path configured by the root or alias command, which may be a symbolic link. $realpath_root: The actual path corresponding to the current request, absolute path. $request_filename: The file path of the current request, derived from the configuration … Read more

Transforming a Bicycle into a Motorcycle – Building a Personal Server!

Transforming a Bicycle into a Motorcycle - Building a Personal Server!

Source: WeChat Official Account 【Osprey Talks Microcontrollers】 Author: Osprey ID: emOsprey Introduction Recently, I set up a personal server at home. With the home broadband, I decided to build a server, YYDS (forever). I used a Raspberry Pi 3B+, with a 16GB (TF card) + 1GB configuration, but after adding various functions, it became clear … Read more

Setting HTTP Request Rate Limiting in Nginx

Setting HTTP Request Rate Limiting in Nginx

ngx_http_limit_req_module The ngx_http_limit_req_module module limits the request processing rate based on the defined key value, particularly for rate limiting requests from a single IP. limit_req_zone Directive Sets up a shared memory zone to store state information and the number of exceeded requests based on the key; the key can include text, variables, or a combination … Read more

A Step-by-Step Guide to Configuring HTTPS Certificates for Nginx on Linux Servers – Easy for Beginners!

A Step-by-Step Guide to Configuring HTTPS Certificates for Nginx on Linux Servers - Easy for Beginners!

Start of the Main Content Meeting is fate, follow ⭐ to not miss out – sharing practical tutorials and tips every day. In today’s world where internet security is increasingly important, configuring HTTPS certificates for websites has become a necessity. This article will take the Nginx server as an example and explain in detail how … Read more

How to Analyze and Resolve Intermittent Packet Loss on Linux Servers?

How to Analyze and Resolve Intermittent Packet Loss on Linux Servers?

Packet loss refers to the situation where data packets are discarded during the transmission process due to various reasons before they reach the application program. The number of discarded packets divided by the total number of transmitted packets is what we commonly refer to as the packet loss rate. The packet loss rate is one … Read more

Limiting HTTP Request Connection Count with nginx

Limiting HTTP Request Connection Count with nginx

ngx_http_limit_conn_module Module 1. The ngx_http_limit_conn_module module limits the number of connections based on the configured key, such as limiting the number of connections based on the IP address. 2. Only connections that are currently being processed by the server and whose request headers have been read will be counted towards the limit. limit_conn_zone Directive 1. … Read more

Linux Web Service Log Statistics Commands

Linux Web Service Log Statistics Commands

Table of Contents Apache Log Statistics Nginx Log Statistics Web Service Status Statistics Other Statistical Combinations Count Statistics This article collects some common statistics commands for Apache/Nginx server logs in Linux operations. Apache Log Statistics # List the top IPs with the most visits today [[email protected] httpd]# cut -d- -f 1 access_log | uniq -c … Read more

Distributed Microservices Architecture Episode 109: HTTP Cache Optimization, Nginx Proxy Configuration, Blue-Green Deployment, Jenkins One-Click Traffic Switching Script

Distributed Microservices Architecture Episode 109: HTTP Cache Optimization, Nginx Proxy Configuration, Blue-Green Deployment, Jenkins One-Click Traffic Switching Script

Contact the author via WeChat: xiaoda0423 Repository address: https://webvueblog.github.io/JavaPlusDoc/ https://1024bat.cn/ 🚀 1. Frontend and Backend Cache Strategy Coordination 🔧 1. Frontend: Effectively Utilize Browser Cache Strong Cache (from disk cache / memory cache) The browser hits the strong cache, does not send a request, and directly uses the local cache Suitable for static resources that … Read more

Improving Website Response Speed: Key Factors Affecting HTTP Performance

Improving Website Response Speed: Key Factors Affecting HTTP Performance

Our discussion on HTTP performance is based on the simplest model, which is the HTTP performance of a single server. Of course, this also applies to large-scale load-balanced clusters, as these clusters are composed of multiple individual HTTP servers. Additionally, we exclude scenarios where the client or server itself is overloaded or where different I/O … Read more

How Does the Raspberry Pi 5 Compare to Previous Models? Real-World Test Data Speaks!

How Does the Raspberry Pi 5 Compare to Previous Models? Real-World Test Data Speaks!

Author: DigiKey Editor Keywords: Development Board, Open Source Hardware, Evaluation Abstract This article is a comparative evaluation of the Raspberry Pi 5 and its predecessors. It details the key hardware specifications of four Raspberry Pi models and compares their performance in CPU, memory, network, NGINX server performance, and TF card read/write speeds through practical testing, … Read more