Re: [squid-users] Squid2.6 Reverse Proxy question

From: Matus UHLAR - fantomas <uhlar@dont-contact.us>
Date: Wed, 17 Jan 2007 22:37:53 +0100

> >May I know how to let real http servers see the client's IP (for php access
> >control) in reverse proxy mode ? do squid2.6 have this feature?

On 13.01.07 04:47, Jeff Pang wrote:
> Squid record the clients' IP addr by default,notice for the
> "forwarded_for" section in squid.conf. You can get it via http environment
> variable,for CGI,it's "$ENV{'HTTP_X_FORWARDED_FOR'}".

$_SERVER['HTTP_X_FORWARDED_FOR'] should work in php (too?).

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"One World. One Web. One Program." - Microsoft promotional advertisement
"Ein Volk, ein Reich, ein Fuhrer!" - Adolf Hitler
Received on Wed Jan 17 2007 - 14:37:57 MST

This archive was generated by hypermail pre-2.1.9 : Thu Feb 01 2007 - 12:00:01 MST