Re: How to add HTTP_X_FORWARDED_FOR header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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" <donovant@xxxxxxxxxxxxxxxx>
To: <users@xxxxxxxxxxxxxxxx>
Sent: Saturday, August 09, 2008 9:31 AM
Subject: Re:  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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux