A
A
Alexander Semenenko2019-09-17 16:28:54
linux
Alexander Semenenko, 2019-09-17 16:28:54

How to make sure that when apache2 works as a reverse proxy, the client's ip comes to the backend, and not the proxy?

There is an apache web proxy which says:

ProxyPass             /xxx http://ip/xxx
ProxyPassReverse /xxx http://ip/xxx

On the web server behind the proxy, there are such logs:
<b>ip_proxy</b> - - [17/Sep/2019:16:21:43 +0300] "GET ..."

Is it possible to see the ip of the client?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2019-09-17
@semenenko88

you must use mod_rpaf if apache version 2.2 (or less)
or remoteip module if apache 2.4
https://blog.mailon.com.ua/mod_rpaf-%D0%B7%D0%B0%D...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question