httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: [users@httpd] Apache : 2 servers for one IP address
Date Sat, 10 Apr 2004 01:06:09 GMT

On Fri, 9 Apr 2004, Mickael Delahaye wrote:

> Thanks a bunch, it worked great. The problem I have now is that since it's
> redirecting all the requests from the first computer to the other one, the
> SQL Query that I have (I use PHP & MySQL to count how many hits each website
> gets by recording the IP address) only returns the first computer's IP
> address (192.168.2.2). Is there anyway to go avoid this ?

Instead of looking at REMOTE_ADDR, have your code look at
HTTP_X_FORWARDED_FOR.  (If I remember correctly)

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message