You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Stephen(Tie) Hu" <ti...@gmail.com> on 2008/08/08 15:18:45 UTC
[users@httpd] How to add HTTP_X_FORWARDED_FOR header
Hi,
I am using apache http server as a proxy. It's working quite well except it doesn't add HTTP_X_FORWARDED_FOR header. Does any one know how to force apache to add HTTP_X_FORWARDED_FOR header? 1000 thanks in ahead!
Here is my apache server's version:
Server version: Apache/2.2.6 (Unix)
Server built: Sep 18 2007 11:26:13
Here is my apache configuration section:
ProxyRequests On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
KeepAlive On
MaxKeepAliveRequests 100
AddDefaultCharset Off
Very Best Regards!
Stephen
Re: [users@httpd] How to add HTTP_X_FORWARDED_FOR header
Posted by "Stephen(Tie) Hu" <ti...@gmail.com>.
Than you so much Tom. I will check them out and give you update. Thanks
again for your kind help!
----- Original Message -----
From: "Tom Donovan" <do...@bellatlantic.net>
To: <us...@httpd.apache.org>
Sent: Saturday, August 09, 2008 9:31 AM
Subject: Re: [users@httpd] How to add HTTP_X_FORWARDED_FOR header
> Stephen(Tie) Hu wrote:
>> Hi,
>> I am using apache http server as a proxy. It's working quite well
>> except it doesn't add HTTP_X_FORWARDED_FOR header. Does any one know how
>> to force apache to add HTTP_X_FORWARDED_FOR header? 1000 thanks in ahead!
>> Here is my apache server's version:
>> Server version: Apache/2.2.6 (Unix)
>> Server built: Sep 18 2007 11:26:13
>> Here is my apache configuration section:
>> ProxyRequests On
>> <Proxy *>
>> Order deny,allow
>> Allow from all
>> </Proxy>
>> KeepAlive On
>> MaxKeepAliveRequests 100
>> AddDefaultCharset Off
>> Very Best Regards!
>> Stephen
>>
> Your configuration describes an open proxy server.
> Be sure to read the warning at
> http://httpd.apache.org/docs/2.2/mod/mod_proxy.html carefully.
>
> The HTTP_X_FORWARDED_FOR header is only provided when httpd is acting in a
> reverse-proxy mode, e.g. when using the ProxyPass directive.
>
> See http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#x-headers.
>
> -tom-
>
>
>
> ---------------------------------------------------------------------
> 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
>
---------------------------------------------------------------------
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
Re: [users@httpd] How to add HTTP_X_FORWARDED_FOR header
Posted by Tom Donovan <do...@bellatlantic.net>.
Stephen(Tie) Hu wrote:
> Hi,
> I am using apache http server as a proxy. It's working quite well
> except it doesn't add HTTP_X_FORWARDED_FOR header. Does any one know how
> to force apache to add HTTP_X_FORWARDED_FOR header? 1000 thanks in ahead!
>
> Here is my apache server's version:
> Server version: Apache/2.2.6 (Unix)
> Server built: Sep 18 2007 11:26:13
>
> Here is my apache configuration section:
> ProxyRequests On
> <Proxy *>
> Order deny,allow
> Allow from all
> </Proxy>
> KeepAlive On
> MaxKeepAliveRequests 100
> AddDefaultCharset Off
>
> Very Best Regards!
> Stephen
>
Your configuration describes an open proxy server.
Be sure to read the warning at http://httpd.apache.org/docs/2.2/mod/mod_proxy.html carefully.
The HTTP_X_FORWARDED_FOR header is only provided when httpd is acting in a reverse-proxy mode, e.g.
when using the ProxyPass directive.
See http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#x-headers.
-tom-
---------------------------------------------------------------------
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