nginx, 100% of traffic detected as proxy

Our support will answer all your general questions here.

Moderator: Rock

Post Reply
bbhrucy79
Posts: 122
Joined: Tue May 24, 2011 4:00 pm

nginx, 100% of traffic detected as proxy

Post 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
Rock
Posts: 226
Joined: Tue Dec 16, 2014 6:11 pm

Re: nginx, 100% of traffic detected as proxy

Post 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
I am a moderator on this forum and I handle part of TE support. ICQ: 651089602
51graphix
Posts: 4
Joined: Mon Aug 24, 2009 6:07 pm

Re: nginx, 100% of traffic detected as proxy

Post by 51graphix »

Was there ever an answer to this? I just switched to an nginx setup, and have noticed the same thing.
texpert
Site Admin
Posts: 719
Joined: Sat Mar 14, 2009 5:54 pm

Re: nginx, 100% of traffic detected as proxy

Post 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
51graphix
Posts: 4
Joined: Mon Aug 24, 2009 6:07 pm

Re: nginx, 100% of traffic detected as proxy

Post 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.
bbhrucy79
Posts: 122
Joined: Tue May 24, 2011 4:00 pm

Re: nginx, 100% of traffic detected as proxy

Post 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
Post Reply