nginx_reverse remote and server IP are the same

Hosting Kernel

Verified User
Joined
Sep 30, 2015
Messages
126
Hi,

I config my server to use nginx_reverse, and my php code which does log user IP to database.

Recently, I notice all users have the same IP, so I checked found that php $_SERVER['REMOTE_ADDR'], $_SERVER['SERVER_ADDR'] return the server IP.

This works fine before, my CB settings are configured to run auto update:

cron=yes
cron_frequency=monthly
email=xxx@email.com
notifications=yes
da_autoupdate=yes
updates=yes
webapps_updates=yes
I have no custom config in '/usr/local/directadmin/custombuild/custom'

Any idea for this problem? I think something wrong after the auto update.
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,492
Location
LT, EU
Fixed in CB 2.0 rev. 1850. It's an Apache bug though :)
 

Wanabo

Verified User
Joined
Jan 19, 2013
Messages
170
Fixed in CB 2.0 rev. 1850. It's an Apache bug though :)
Updated CB to rev. 1850. Bug still present in my statistics program even after restarting apache and nginx.
Do I need to rebuild?
 
Top