proxy error

spartan90
Posts: 25
Joined: Wed Sep 12, 2018 12:45 am

proxy error

Post by spartan90 »

Hello, I have installed the script on one of my website. I use proxy server to drive traffic to my main server where I have smart cj installed. I recieve this errors:

Nginx <-> Apache ERROR $_SERVER[SERVER_ADDR] == $_SERVER[REMOTE_ADDR], please, contact hosting support.

You are behind proxy. This is not an error if you really use proxy. In other case check your SERVER settings. If you use nginx - check WIKI article 'nginx'

Can you please help me with this?

thanks
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: proxy error

Post by admin »

Don't forget to run script update
spartan90
Posts: 25
Joined: Wed Sep 12, 2018 12:45 am

Re: proxy error

Post by spartan90 »

Hello,

The guys from server has no clue about this issue. Can you please help me with this? Is any change I have to do with nginx.conf

Thanks and please help me with this.
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: proxy error

Post by admin »

ok
open scj/admin/test.php and find REMOTE_ADDR variable

what do you see there ? it's supposed to be your IP address
Don't forget to run script update
spartan90
Posts: 25
Joined: Wed Sep 12, 2018 12:45 am

Re: proxy error

Post by spartan90 »

http://analpaintube.com/info.php

The ip at REMOTE_ADDR is the server IP where is hosted smartcj script.

And here is the proxy server ip.
_SERVER["HTTP_X_REAL_IP"] 54.36.137.142
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: proxy error

Post by admin »

right
and REMOTE_ADDR should be = _SERVER["HTTP_X_REAL_IP"]

ask admin to fix it
Don't forget to run script update
spartan90
Posts: 25
Joined: Wed Sep 12, 2018 12:45 am

Re: proxy error

Post by spartan90 »

http://analpaintube.com/tube/admin/test.php

In the end they managed to get the remote good but still got some problems, and is showing only this error now:

You are behind proxy. This is not an error if you really use proxy. In other case check your SERVER settings. If you use nginx - check WIKI article 'nginx'

Also I have 0 stats for thumbs even if I have traffic and clicks on website:

CTR : 0.000000
Thumb Shows : 0 (new)

Can you please take a look here:

http://analpaintube.com/tube/admin/
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: proxy error

Post by admin »

I've edited your post to remove credentials, do not publicly post such data please.

Yes, same post

http://smartcj.com/wiki/doku.php?id=nginx#error_2
Don't forget to run script update
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: proxy error

Post by admin »

If you don't fix it - script sees all hits as coming thought proxy and might not count it
Don't forget to run script update
spartan90
Posts: 25
Joined: Wed Sep 12, 2018 12:45 am

Re: proxy error

Post by spartan90 »

The guys from server basically has no idea how to resolve this :( I don`t know where to find documentation to resolve this.
Post Reply