Page 1 of 1

nginx, 100% of traffic detected as proxy

Posted: Sun Mar 05, 2017 11:06 am
by bbhrucy79
with nginx used as reverse proxy in front of apache (a very common setup these days), te3 detects 100% of incoming hits as proxy.

Does te3 work with this config (nginx + Apache), or is there a way to set up nginx correctly with te3? clearly detecting 100% of incoming as proxy is wrong, but it might be bad setup at nginx.conf. The question is how to set up right?

thanx

Re: nginx, 100% of traffic detected as proxy

Posted: Mon Mar 06, 2017 6:52 am
by Rock
Hello, bbhrucy79.

Could you send me a PM with TE3 login details for the site and if it's possible FTP login info so we can check it?

Best regards,
Rock

Re: nginx, 100% of traffic detected as proxy

Posted: Thu Sep 28, 2017 2:45 pm
by 51graphix
Was there ever an answer to this? I just switched to an nginx setup, and have noticed the same thing.

Re: nginx, 100% of traffic detected as proxy

Posted: Sat Oct 21, 2017 7:44 am
by texpert
Hello 51graphix,

can you PM me TE3 login details so i can take a look or hit me up on ICQ.


Best regards,
Alex

Re: nginx, 100% of traffic detected as proxy

Posted: Sat Oct 21, 2017 4:49 pm
by 51graphix
I've been waiting for weeks for help on ICQ now, with no replies there. Alex already has my login information and never confirmed whether he could get in or not. In addition to the traffic showing 100% proxy, my sites are still showing 50% less traffic than normal since 9-24, and stats are no where close to what Google Analytics is reporting.

Re: nginx, 100% of traffic detected as proxy

Posted: Sun Jan 21, 2018 11:46 am
by bbhrucy79
@51graphix

hello,
Sorry I just see your post now, haven't been here for almost for a year.

The solution is in your nginx config.

Look for nginx config file

/etc/nginx/nginx-userdir.conf

AND

/etc/nginx/nginx-vhosts.conf

Find this line:
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
and simply comment out (or delete):
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

Hope this helps

Do the same with your nginx.conf file:

Search and replace with notepad or notepad++ :
proxy_set_header X-Forwarded-For
with
#proxy_set_header X-Forwarded-For