From 74e6c04514cb83552058a1887be0f5e67ef30b38 Mon Sep 17 00:00:00 2001 From: apgordon312 Date: Sun, 4 May 2025 11:02:54 -0700 Subject: [PATCH] Update using-proxy-protocol.md Removed gerunds from headings. --- .../nginx/admin-guide/load-balancer/using-proxy-protocol.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/nginx/admin-guide/load-balancer/using-proxy-protocol.md b/content/nginx/admin-guide/load-balancer/using-proxy-protocol.md index a1dee5b92..3ed8000be 100644 --- a/content/nginx/admin-guide/load-balancer/using-proxy-protocol.md +++ b/content/nginx/admin-guide/load-balancer/using-proxy-protocol.md @@ -40,7 +40,7 @@ Using this data, NGINX can get the originating IP address of the client in sever -## Configuring NGINX to Accept the PROXY Protocol +## Configure NGINX to Accept the PROXY Protocol To configure NGINX to accept PROXY protocol headers, add the `proxy_protocol` parameter to the `listen` directive in a `server` block in the [`http {}`](https://nginx.org/en/docs/http/ngx_http_core_module.html#listen) or [`stream {}`](https://nginx.org/en/docs/stream/ngx_stream_core_module.html#listen) block. @@ -66,7 +66,7 @@ stream { Now you can use the [`$proxy_protocol_addr`](https://nginx.org/en/docs/http/ngx_http_core_module.html#var_proxy_protocol_addr) and [`$proxy_protocol_port`](https://nginx.org/en/docs/http/ngx_http_core_module.html#var_proxy_protocol_port) variables for the client IP address and port and additionally configure the [HTTP](https://nginx.org/en/docs/http/ngx_http_realip_module.html) and [`stream`](https://nginx.org/en/docs/stream/ngx_stream_realip_module.html) RealIP modules to replace the IP address of the load balancer in the [`$remote_addr`](https://nginx.org/en/docs/http/ngx_http_core_module.html#var_remote_addr) and [`$remote_port`](https://nginx.org/en/docs/http/ngx_http_core_module.html#var_remote_port) variables with the IP address and port of the client. -## Changing the Load Balancer's IP Address To the Client IP Address +## Change the Load Balancer's IP Address To the Client IP Address You can replace the address of the load balancer or TCP proxy with the client IP address received from the PROXY protocol. This can be done with the [HTTP](https://nginx.org/en/docs/http/ngx_http_realip_module.html) and [`stream`](https://nginx.org/en/docs/stream/ngx_stream_realip_module.html) RealIP modules. With these modules, the [`$remote_addr`](https://nginx.org/en/docs/http/ngx_http_core_module.html#var_remote_addr) and [`$remote_port`](https://nginx.org/en/docs/http/ngx_http_core_module.html#var_remote_port) variables retain the real IP address and port of the client, while the [`$realip_remote_addr`](https://nginx.org/en/docs/http/ngx_http_realip_module.html#var_realip_remote_addr) and [`$realip_remote_port`](https://nginx.org/en/docs/http/ngx_http_realip_module.html#var_realip_remote_port) variables retain the IP address and port of the load balancer. @@ -105,7 +105,7 @@ To change the IP address from the load balancer's IP address to the client's IP ``` -## Logging the Original IP Address +## Log the Original IP Address When you know the original IP address of the client, you can configure the correct logging: