B
B
Bermut2021-10-18 20:26:14
Nginx
Bermut, 2021-10-18 20:26:14

How to find out real ip if dual nginx proxy is installed?

A short and urgent question, there are two nginx in the local network, one main, looks at the Internet, a proxy is configured to the second nginx server, which is only accessible through the local network, and this second nginx also works as a proxy for the local(localhost'a) nextcloud, and now actually the question is how to find out the real ip address that gets access from the internet, adding "proxy_set_header X-Real-IP $remote_addr;" in the configuration of two nginx, does not help, nextcloud still thinks that the first nginx connects to it

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2021-10-18
@Bermut

Throw from the first nginx X-Real-IPto the X-Real-IPsecond, in the second - X-Real-IPto remote_addr.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question