Installing Nginx on Rocky Linux 9

Installing Nginx on Rocky Linux 9

Installing Nginx on Rocky Linux 9 Hello everyone, I am Xing Ge. Nginx has become one of the mainstream choices for web service deployment due to its high performance, low resource consumption, and excellent reverse proxy capabilities. This article will guide you through the process of installing and configuring the Nginx service from scratch on … Read more

Understanding the Differences and Use Cases of iptables and Nginx Forwarding

Understanding the Differences and Use Cases of iptables and Nginx Forwarding

In the field of server management, iptables and nginx forwarding are two very important concepts that have both similarities and significant differences in functionality and application scenarios. Today, we will delve into the differences between iptables and nginx forwarding and the respective application scenarios for each. 1. iptables Forwarding 1. Working Principle iptables is a … Read more

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