Kovács Dániel wrote:
> Ezzel a dátummal: Thursday 03 April 2008 22.31.18 Mihaly Zachar ezt írta:
>
>   
>>> szerintem A gepre tegyel mondjuk egy apache reverse proxy-t 
>>> (mod_proxy)... ez a modul betesz  egy "X-Forwarded-For" headert, ezt
>>> olvasgasd mondjuk a php-vel...
>>>
>>>       
>> ugynezki a pound-hoz (reverse proxy / load balancer) van egy patch, ahol
>> meg a logok is jok lesznek a hatso apache-ban:
>>
>>     
>
> Feltettem a poundot, szepen dobalja is at a forgalmat, megjelent a 
> HTTP-X-FORWARDED fejlec is, ez php-ben mar jo.
>
>  
>   
hmm, akkor kicsit elneztem, gyorsan olvastam, azthittem, hogy a poundhoz 
van ez a patch, sorry...

> De ettol meg mindig az eredeti szerver IP-je naplozodik... 
> Mindenesetre az X-FORWARDED fejelec mar sokat jelent, koszonom!
>   

X-Forwarded-For a rendes neve, es ezt a fent emlitett patch nelkul is 
kuldi az mod_proxy...

a logolashoz meg van egy ilyen:

|%{Foobar}i -> | The contents of |Foobar:| header line(s) in the request 
sent to the server.

http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#formats

szeritnem mennie kellene...


Misi
_________________________________________________
linux lista      -      linux@mlf.linux.rulez.org
http://mlf2.linux.rulez.org/mailman/listinfo/linux

válasz