Hi Greg

You won't be able to change apache error log format you can only change the
acces log file if my memory is correct.

Maybe John sugeestion of using mod_rpaf would work but I never tried it.

Good luck !


2011/4/7 Greg Connolly <[email protected]>

> I’m having an issue getting the apache error logs to receive the client
> ip’s. the proxy ip is the only one showing up. I have the apache access log
> working using the forward-for but not the error logs. Can anyone shed most
> light in this issue? Here is the current configuration.
>
>
>
> Apache2.conf
>
>
>
> LogFormat "%v:%p %{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\"
> \"%{User-Agent}i\"" vhost_combined
>
> LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\"
> \"%{User-Agent}i\"" combined
>
> LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b" common
>
> LogFormat "%{Referer}i -> %U" referer
>
> LogFormat "%{User-agent}i" agent
>
>
>
> Haproxy.cfg
>
>
>
> listen Test01 10.1.8.52:80
>
>        mode http
>
>        maxconn     1000
>
>        balance roundrobin
>
>        cookie JSESSIONID prefix
>
>        option httplog
>
>        option httpclose
>
>        option forwardfor except 10.0.0.0/16
>
>        option httpchk HEAD /haproxy_check.txt HTTP/1.0
>
>        stick-table type ip size 200k expire 18m
>
>        stick on src
>
>        server 10.1.109.52 10.1.109.52:80 weight 60 cookie B check
>
>        server 10.1.108.52 10.1.108.52:80 weight 40 cookie A check
>
>
>
> Thanks Greg
>



-- 
Guillaume Bourque, B.Sc.,
consultant, infrastructures technologiques libres
Logisoft Technologies inc.  http://www.logisoftech.com
514 576-7638,  http://ca.linkedin.com/in/GuillaumeBourque/fr

Reply via email to