You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by tachu <ta...@ucguate.com> on 2004/06/19 03:38:11 UTC

[users@httpd] Setting Cookie in apache

Hello I was able to succesfully set apache with mod proxy to act a 
compression server of another old server that didnt support it. now my 
problem is that on my app server when i record the user ip i always get 
my apache's ip. So by seeing the previous compression server that we 
where using I noticed that what this other server does is that it sends 
a cookie to the app server together with the request where it specified  
the users ip. So my question is how do i setup apache to send a cookie 
with the original request ip. I kind of had an idea of doing the following
RequestHeader Append Cookie "RealIP=IP" but my problem is getting the 
real ip. I know mod_log has access to it via %h  so basically is there a 
way of setting an enviroment variable that contains the request Ip
thanks a lot for your help

Jose Avila


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