httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
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 ( 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)


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message