'log style forwarded' is very specifically looking for the headers:

X-Forwarded-For
X-Forwarded-Port

to write out to the log. In relayd you can accomplish via the following:

match request header set "X-Forwarded-For" value "$REMOTE_ADDR"

Use caution in how you set this header in your proxy as nothing stops
a client from sending X-Forwarded-For headers in the request.

Regards
Lloyd

Lars Bonnesen wrote:

> Been running apache where this seems to work correctly, but on a new
> openbsd install, I am evaluating a shift to httpd - but I am hitting a
> lot of challenges.
> 
> Currently I am trying to get some decent logging. That is log clients
> original IP, not the HAproxy IP.
> 
> I have been reading the man pages especially:
> 
> [no] log [option]
> 
> part, but log style forwarded seems not to do the trick. And openbsd
> httpd apparently does not understand the send-proxy from HAproxy.
> 
> Any ideas?

Reply via email to