Skip to content

Commit 4857fc3

Browse files
apgordon312mjang
andauthored
Update using-proxy-protocol.md (#504)
Removed gerunds from headings. Co-authored-by: Mike Jang <[email protected]>
1 parent 27be8b0 commit 4857fc3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/nginx/admin-guide/load-balancer/using-proxy-protocol.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Using this data, NGINX can get the originating IP address of the client in sever
4040

4141

4242
<span id="listen"></span>
43-
## Configuring NGINX to Accept the PROXY Protocol
43+
## Configure NGINX to Accept the PROXY Protocol
4444

4545
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.
4646

@@ -66,7 +66,7 @@ stream {
6666
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.
6767

6868
<span id="realip"></span>
69-
## Changing the Load Balancer's IP Address To the Client IP Address
69+
## Change the Load Balancer's IP Address To the Client IP Address
7070

7171
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.
7272

@@ -105,7 +105,7 @@ To change the IP address from the load balancer's IP address to the client's IP
105105
```
106106

107107
<span id="log"></span>
108-
## Logging the Original IP Address
108+
## Log the Original IP Address
109109

110110
When you know the original IP address of the client, you can configure the correct logging:
111111

0 commit comments

Comments
 (0)