Skip to content

Commit 18d2b4f

Browse files
authored
Pass the remote IP to the proxied application (#1298)
1 parent 02989f0 commit 18d2b4f

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/actions/spelling/expect.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ redhat
276276
redir
277277
redirectscheme
278278
refactors
279+
remoteip
279280
reputational
280281
risc
281282
ruleset

docs/docs/admin/environments/apache.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ Assuming you are protecting `anubistest.techaro.lol`, you need the following ser
9292
DocumentRoot /var/www/anubistest.techaro.lol
9393
ErrorLog /var/log/httpd/anubistest.techaro.lol_error.log
9494
CustomLog /var/log/httpd/anubistest.techaro.lol_access.log combined
95+
96+
# Pass the remote IP to the proxied application instead of 127.0.0.1
97+
# This requires mod_remoteip
98+
RemoteIPHeader X-Real-IP
99+
RemoteIPTrustedProxy 127.0.0.1/32
95100
</VirtualHost>
96101
```
97102

0 commit comments

Comments
 (0)