M
M
moderatorh2012-10-01 20:02:04
Nginx
moderatorh, 2012-10-01 20:02:04

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

7 answer(s)
M
moderatorh, 2012-10-03
@moderatorh

Huge thanks to you man!
You were 100% right!
Replaced
RPAFheader X-Forwarded-For
with
RPAFheader X-Real-IP
And it all worked!

M
mastini, 2012-10-01
@mastini

As already said: mod_rpaf / Git
Apache sees all users under one IP (127.0.0.1)

K
KaMaToZzz, 2012-10-01
@KaMaToZzz

I solved the problem using the rpaf module.

C
charliez, 2012-10-03
@charliez

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;

N
NiGHt_LEshiY, 2012-10-01
@NiGHt_LEshiY

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.

V
Vlad Zhivotnev, 2012-10-02
@inkvizitor68sl

debian.pro/147
page search -> rpaf

C
charliez, 2012-10-02
@charliez

RPAFproxy_ips - here you also need to register the IP address of the external server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question