Answer the question
In order to leave comments, you need to log in
nginx - apache - phpbb Lost guests! :(
I installed nginx as a proxy frontend. Further Apache under it is a bunch of CMS, including the Phpbb forum. Of the unfinished glitches, an incorrect count of guests surfaced. If earlier there were always about one and a half two hundred of them, now it is always strictly 1 :-). How it is correct to be treated?
Answer the question
In order to leave comments, you need to log in
Huge thanks to you man!
You were 100% right!
Replaced
RPAFheader X-Forwarded-For
with
RPAFheader X-Real-IP
And it all worked!
As already said: mod_rpaf / Git
Apache sees all users under one IP (127.0.0.1)
In my configs,
in Apache
LoadModule rpaf_module /usr/lib/httpd/modules/mod_rpaf-2.0.so
RPAFenable On
RPAFproxy_ips 127.0.0.1 XXX.XXX.XXX.XXX
RPAFsethostname On
RPAFheader X-Real-IP
in nginx:
...
proxy_pass 127.0 .0.1 :80;
include proxy.inc;
...
in proxy.inc:
...
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
…
Without the real_ip module, when proxying, the IP addresses of users will not be proxied and given to Apache, and resp. will be the same - 127.0.0.1. Hence one guest.
By installing the module you will solve the problem.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question