mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-15 21:04:56 +00:00
Pass the remote IP to the proxied application (#1298)
This commit is contained in:
committed by
GitHub
parent
02989f03d0
commit
18d2b4ffff
1
.github/actions/spelling/expect.txt
vendored
1
.github/actions/spelling/expect.txt
vendored
@@ -276,6 +276,7 @@ redhat
|
|||||||
redir
|
redir
|
||||||
redirectscheme
|
redirectscheme
|
||||||
refactors
|
refactors
|
||||||
|
remoteip
|
||||||
reputational
|
reputational
|
||||||
risc
|
risc
|
||||||
ruleset
|
ruleset
|
||||||
|
|||||||
@@ -92,6 +92,11 @@ Assuming you are protecting `anubistest.techaro.lol`, you need the following ser
|
|||||||
DocumentRoot /var/www/anubistest.techaro.lol
|
DocumentRoot /var/www/anubistest.techaro.lol
|
||||||
ErrorLog /var/log/httpd/anubistest.techaro.lol_error.log
|
ErrorLog /var/log/httpd/anubistest.techaro.lol_error.log
|
||||||
CustomLog /var/log/httpd/anubistest.techaro.lol_access.log combined
|
CustomLog /var/log/httpd/anubistest.techaro.lol_access.log combined
|
||||||
|
|
||||||
|
# Pass the remote IP to the proxied application instead of 127.0.0.1
|
||||||
|
# This requires mod_remoteip
|
||||||
|
RemoteIPHeader X-Real-IP
|
||||||
|
RemoteIPTrustedProxy 127.0.0.1/32
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user