Setting Up an Nginx Reverse Proxy Load Balancing Cluster on CentOS 7
Three CentOS 7 virtual machines are used to build a basic Nginx reverse proxy load balancing cluster:
192.168.2.76: Nginx load balancer
192.168.2.82: Web server (web01)
192.168.2.78: Web server (web02)
Install Nginx on All Nodes
Install required dependencies:
yum -y install openssl openssl-devel pcre pcre-devel gcc wget
Create the installati ...
Posted on Sun, 10 May 2026 00:00:43 +0000 by Grim...
Nginx Load-Balancing Algorithms and Reverse-Proxy Best Practices
Enviroment
Role
IP Address
LB
10.240.35.55
web1
10.240.35.56
web2
10.240.35.57
web3
10.240.35.58
Basic Round-Robin
Load-Balancer
upstream backend_pool {
server 10.240.35.56:80;
server 10.240.35.57:80;
server 10.240.35.58:80;
}
server {
listen 80;
server_name www.demo.com;
location / {
proxy_pass ...
Posted on Sat, 09 May 2026 23:02:59 +0000 by bbristow
Linux System Administration and Software Installation Guide
Proxy Configuration
Permanent Proxy Settings
vi /etc/profile
export http_proxy='http://username:password@proxy_ip:port'
export https_proxy='http://username:password@proxy_ip:port'
source /etc/profile
Temporary Proxy Settings
export http_proxy=http://username:password@proxy_ip:port/
export ftp_proxy=http://username:password@proxy_ip:port/
YUM ...
Posted on Sat, 09 May 2026 19:03:38 +0000 by hank9481
CSS and Nginx: A Practical Guide for Web Development
1 CSS Basics
1.1 Introduction to CSS
1.1.1 Overview
After learning basic HTML tags and styling, the next technology to master infront-end development is CSS.
HTML attributes can adjust some styles, but the effects are often limited. We prefer to write styles inside the <style> tag for more control and aesthetics. This is made possible by ...
Posted on Sat, 09 May 2026 07:54:38 +0000 by ody
Compiling and Installing Nginx from Source on Linux
Compiling Nginx from source provides greater control over the binary features and optimization for specific server environments. This process involves setting up the build enviroment, installing necessary libraries, and executing the compilation workflow.
1. Preparation of Installation Directories
Create a dedicated workspace to store the sourc ...
Posted on Fri, 08 May 2026 06:21:05 +0000 by maest
Integrating Lua with Nginx for High-Performance Scripting
Lua Syntax Fundamentals
Nginx and Lua Environment
Objective: Use Nginx combined with Lua to implement a canary release strategy.
Lua Overview
A lightweight, compact, and highly extensible scripting language.
Nginx+Lua Advantages
Combines the efficient concurrency handling of Nginx's event-driven mechanism (epoll) with the agility of Lua, makin ...
Posted on Thu, 07 May 2026 13:09:47 +0000 by jdpatrick
Implementing Mutual TLS Authentication with Nginx
Generating Certificates
To establish mutual authentication, you must first create a Certificate Authority (CA) and sign your server and client certificates. Use the following commands to generate the necessary keys and certifictaes:
# Generate the root CA private key
openssl genrsa -out root_authority.key 4096
# Generate the root CA self-signed ...
Posted on Thu, 07 May 2026 10:53:29 +0000 by jrodd32