Answer the question
In order to leave comments, you need to log in
How to determine client IP in nginx?
On nginx + php5-fpm server. It was necessary to determine the real IP of the client, after searching, I realized that such a problem is mostly in the apache + nginx bundle, but I only have nginx. I decided to look into the logs, the wrong IP is also written there.
How to configure the correct IP output for $_SERVER['REMOTE_ADDR'] + how to clean up the logs?
Answer the question
In order to leave comments, you need to log in
in the bundle you specified, by default, there will be a correct user ip, unless of course you have set any cloudflare or analogue before that.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question