K
K
kkoshakk2016-08-29 08:55:37
Nginx
kkoshakk, 2016-08-29 08:55:37

Is ngx_http_realip_module required when using Nginx + PHP-FPM?

As I understand it, if you use a bunch with Apache, then this module is needed to determine the real ip of users. And if Nginx + PHP-FPM, IP addresses will be real, this module should not be used?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey, 2016-08-29
@kkoshakk

In the nginx + apache bundle, this Apache needs an additional mod_rpaf module to convert the X-REAL-IP header to REMOTE_ADDR.
In the nginx + php-fpm bundle, no additional modules for IP are needed.
ngx_http_realip_module is needed by the "second" nginx in the nginx + nginx bundle

V
Vladimir, 2016-08-29
@MechanID

If you use or plan to use CloudFlare, then this module will come in handy, because it's good to see the real IP addresses of visitors and not CloudFlare subnets.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question