One-Click Deployment of Nginx Web Server with Ansible

One-Click Deployment of Nginx Web Server with Ansible

1. Create roles directory mkdir -p ansible_nginx/group_vars mkdir -p ansible_nginx/roles cd ansible_nginx/roles mkdir common nginx mkdir {common,nginx}/tasks mkdir nginx/{files,handlers} mkdir nginx/templates 2. Basic Configuration of Roles cd ansible_nginx 2.1. Hosts Configuration cat hosts [webservers] 192.168.52.16 2.2. site.yml Configuration cat site.yml —- name: Install nginx hosts: webservers remote_user: root roles: – role: common – role: nginx … Read more

Beyond Nginx! The Next-Generation Web Server That Is Elegantly Designed!

Beyond Nginx! The Next-Generation Web Server That Is Elegantly Designed!

More than 430 friends have joined Er Ge’s programming community. If you also need a good learning environment, click the link to join our big family! This is a private group for Java learning guides + practical programming + LeetCode problem-solving, where you can ask Er Ge questions, get help in creating a learning plan, … Read more

Nginx Environment Setup: Installation and Configuration Guide on Linux (CentOS)

Nginx Environment Setup: Installation and Configuration Guide on Linux (CentOS)

Introduction Nginx is a high-performance web server, reverse proxy server, and load balancer, widely used in modern internet architectures. It is known for its lightweight design, high concurrency handling capabilities, and low resource consumption. This article will provide a detailed guide on how to install and configure Nginx on a Linux system. Installation Method Comparison … Read more

A Tool for Sharing Files over HTTP Protocol in Intranet

A Tool for Sharing Files over HTTP Protocol in Intranet

Background: In the past, sharing files was done either through FTP or by sending them to users via WeChat. This method always required an intermediary transfer, and the performance loss during this transfer is unacceptable for a backend developer. Therefore, this project was developed. https://github.com/SpringStudent/HttpFileShare Introduction: This project turns your local computer into an HTTP … Read more

Complete Guide to Installing Nginx on Rocky Linux 9

Complete Guide to Installing Nginx on Rocky Linux 9

Complete Guide to Installing Nginx on Rocky Linux 9 1. Environment Preparation 1. System Update sudo dnf update -y sudo dnf install epel-release -y 2. Firewall Configuration sudo firewall-cmd –permanent –add-service=http sudo firewall-cmd –permanent –add-service=https sudo firewall-cmd –reload 2. Installing Nginx Install via EPEL Repository sudo dnf install nginx -y 2. Verify Installation Version nginx … Read more

Nginx Reverse Proxy (Part 2): Implementing Load Balancing for HTTP Protocol Reverse Proxy

Nginx Reverse Proxy (Part 2): Implementing Load Balancing for HTTP Protocol Reverse Proxy

Click the above SRE Operations Group,👉Follow me👈,Choose Set as Star High-quality articles delivered promptly 4 Nginx Reverse Proxy4.4 Implementing Load Balancing for HTTP Protocol Reverse Proxy 4.4.1 Related Directives and Parameters Based on the implementation of Nginx reverse proxy, advanced features such as backend server grouping, weight allocation, status monitoring, and scheduling algorithms can be … Read more

Nginx Reverse Proxy (Part 1): Implementing HTTP Protocol Reverse Proxy

Nginx Reverse Proxy (Part 1): Implementing HTTP Protocol Reverse Proxy

Click the above SRE Operations Group,👉Follow me👈,Select Set as Favorite High-quality articles delivered promptly 4 Nginx Reverse Proxy 4.1 Basics of Proxy There are two types of proxies: forward proxy and reverse proxy Forward Proxy and Reverse Proxy are two common types of proxy servers used to handle different directions and purposes in network communication … Read more

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