Multiple X-Forwarded-For headers

From: Jean-Baptiste Quenot <jbq#caraldi.com>
Date: Thu, 20 Dec 2007 12:04:27 +0100


Hi there,

I'm using the forwardfor option so that haproxy adds the originating IP in the X-Forwarded-For http request header. This works great, but sometimes the request already has an X-Forwarded-For header, and ip addresses get appended, like:

X-Forwarded-For: 1.2.3.4, 2.3.4.5, 3.4.5.6

As multiple values are impractical to handle in Apache and awstats, do you think it makes sense to add an option in haproxy so that the X-Forwarded-For header is replaced instead?

Cheers,

-- 
Jean-Baptiste Quenot
http://caraldi.com/jbq/blog/
Received on 2007/12/20 12:04

This archive was generated by hypermail 2.2.0 : 2007/12/20 12:15 CET