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

Configuring Nginx to Support HTTP/2 with Basic Optimization

Configuring Nginx to Support HTTP/2 with Basic Optimization

With the rapid development of the internet, HTTP/2 has become the standard protocol for modern website optimization. Compared to HTTP/1.1, HTTP/2 introduces features such as multiplexing, header compression, and server push, which can significantly improve webpage loading speed, especially for resource-intensive websites. This article will detail how to enable HTTP/2 support on Nginx and perform … Read more

Nginx Configuration for HTTP to HTTPS Forwarding

Nginx Configuration for HTTP to HTTPS Forwarding

1. You need to rewrite the 80 port to 443. server { listen 80; server_name oa.dalu.com; rewrite ^(.*)$ https://${server_name}$1 permanent; } server { listen 443; #server_name default; server_name oa.dalu.com; root /data/web/; 2. Whitelist configuration for Nginx domain access server { listen 80; server_name www.test.com; root /var/www/html/test; access_log /var/www/logs/access.log main; error_log /var/www/logs/error.log; ## Whitelist settings, only … Read more

HTTP Chunked Transfer Encoding

HTTP Chunked Transfer Encoding

Introduction In HTTP, uploading and downloading files is always a time-consuming process, especially with large files. This led to the development of such data transfer methods after HTTP/1.1. Chunked transfer encoding divides a large file into different chunks for transmission, allowing the client to reassemble the complete data upon receipt. Chunked Transfer Encoding Originally, there … Read more

Understanding HTTP Long Connections in Nginx

Understanding HTTP Long Connections in Nginx

In Nginx, the HTTP module uses configurations related to HTTP long connections (mainly the keepalive directive) and explains the principles of HTTP long connections. 1. HTTP Long Connections 1.1 Prerequisites Connection management is a key topic in HTTP: opening and maintaining connections greatly affects the performance of websites and web applications. In HTTP/1.x, there are … Read more

Why Does HTTPS Return Large Data While HTTP Returns Line by Line?

Why Does HTTPS Return Large Data While HTTP Returns Line by Line?

Background: Recently, while debugging a ChatGPT dialogue website, I encountered issues with large data responses, leading me to use stream reading. The initial HTTP calls worked without any problems, but when switching to HTTPS in production, I kept facing errors. After struggling with this issue for two days, I finally resolved it with the help … Read more