Understanding Nginx Proxy Pass Behavior with Trailing Slashes
Proxy Pass Configuration Examples
When configuring Nginx as a reverse proxy, the behavior of the proxy_pass directive can vary depending on the presence of a trailing slash in the URL.
Example 1: Proxy Pass with Trailing Slash
location ^~ /abc/ {
proxy_pass http://192.168.1.1:8080/;
}
A request to http://www.a.com/abc/a.html will be forwa ...
Posted on Wed, 10 Jun 2026 17:28:34 +0000 by Aus
Nginx Location Directive Matching Rules and Web Server Configuration
Event Block Optimization
events {
worker_connections 4096;
use epoll;
accept_mutex on;
multi_accept on;
}
The worker_connections parameter sets the upper limit of simultaneous connections each worker process handles. The theoretical maximum client capacity equals worker_processes × worker_connections, though actual limits depen ...
Posted on Wed, 20 May 2026 04:05:52 +0000 by laserlight
Establishing TCP/UDP Tunnels with FRP for Internal Network Access
Overview
FRP (Fast Reverse Proxy) is a lightweight, open-source reverse proxy tool designed to expose local services behind NATs or firewalls to the public internet. It supports multiple protocols including TCP, UDP, and HTTP, enabling flexible tunneling scenarios such as remote administration, service forwarding, and internal network reconnais ...
Posted on Sun, 17 May 2026 06:45:10 +0000 by TheCase
Nginx Reverse Proxy Configuration for Common Services
Consul Web UI Proxy Setup
location ~ ^/ui {
auth_basic "Authentication Required";
auth_basic_user_file /etc/nginx/passwd.db;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:8500;
}
Kibena Dashbo ...
Posted on Wed, 13 May 2026 23:41:48 +0000 by sherri
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