Hello,

On Wed, Apr 28, 2010 at 02:39:32PM -0400, johnskar...@informed-llc.com wrote:
> 
> Greetings. 
> 
> 
> I've got a quick question about logging in haproxy. We've got a setup that 
> utilizes nginx has the ssl decryptor who then passes off decrypted http 
> requests to haproxy, who then does what he needs. My question involves the 
> logging of the IP address in the syslogs. X-Forwarded-For exists for logging 
> of HTTP requests on the web server logs, however, haproxy logs the proxies 
> address in the system logs. Is there an option to reflect what 
> X-Forwarded-For does? 

yes, see "capture request header". You'd want something like
"capture request header x-forwarded-for len 15".

Regards,
Willy


Reply via email to