Hi, We have the following code in our relayd.conf file and it works
fantasticaly for our http traffic that we have been putting through it.
We now want to start using webdav and have realised that the "header
change" lines are stopping webdav from working for some reason. Is there
possible to filter by domain so that say for "webdav.domain.com" we
don't do any header change ? We realise that we could just get another
IP address and get pf to forward to another port but if it's possible to
filter in relayd then that would be our preferred option.
http protocol "http_service" { tcp { sack, socket buffer 65536, backlog
1000 }
return error
header change "X-Forwarded-For" to "$REMOTE_ADDR"
header change "Keep-Alive" to "$TIMEOUT"
header change "Connection" to "close"
}
relay "http_forwarder" {
listen on 127.0.0.1 port 8080
protocol "http_service"
forward to <web_hosts> port 80 mode loadbalance check http "/" code 200
}
Thanks
Keith