Jump to content

X-Forwarded-For behind a reverse proxy


Recommended Posts

hi all,

 

i'm using PS 1.6.0.6 behind a reverse proxy.

all is working fine except the stats tools witch displays my server ip adress every time.

i have also add PIWIK to monitor my prestashop shop and PIWIK displays the good IP : my customers real ip. 

 

i'm under APACHE 2.2 + PHP 5.4 and using RPAF for X-Forwarded-For

Anything to modify on Prestashop ?

 

i have on the same VPS, differents Wordpress instances without any trouble ...

 

Link to comment
Share on other sites

  • 3 months later...

Hey I'm using that with no problem in my Apache logs.  Here's my Apache RPAF config:

 

LoadModule rpaf_module modules/mod_rpaf-2.0.so
<IfModule mod_rpaf-2.0.c>
RPAFenable On
RPAFsethostname On
RPAFproxy_ips XXX.XXX.XXX.XXX (Space separted IP or IPs of your nginx listener, localhost IP, apache listener for your VH IP)
RPAFheader X-Forwarded-For
</IfModule>
 
Hope this helps...  I love how fast it is and I'm using SSL on my whole site now using Nginx as a SSL Terminator with SPDY since Apache's support for it isn't as straight forward.
 
Let me know if you get it working.
 
Thanks,
James Stepp
Link to comment
Share on other sites

  • 3 months later...
×
×
  • Create New...