On 4/19/05, Ezio Paglia <ezio@xxxxxxxxxxxxxxxxxx> wrote: > >Look in the environment variable X_Forwarded_For. > > if the request passes through a chain of proxies what does it happen to > such variabile ? Depends on the proxies. I believe that if apache is the last proxy, it will remove any previous values and write the IP address of the last proxy in X-Forwarded-For. There is no general way to tell the original client's IP address. It all depends on the proxies involved. > In order to leave intact the application on the backup server, could we use > a setenv mechanism on the backend server, in order to rewrite the > remote_addr variable with the x_forwarded_for variable ? No. This would require a custom apache module. (It probably wouldn't be too complicated, but you would need to be very careful about security issues.) 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx