relayd.conf.5:
The first
.Bq Ar action
should probably read
.Bq Ar type
I was trying to set up some semblance of "virtual host" proxying with
relayd (4.3-stable) and hit a stumbling block when my first attempt
was something along the following:
http protocol "my_http" {
request url expect "my.domain/"
}
While this worked quite well for 99% of HTTP requests to my domain, it
closed/aborted requests to the root directory (lynx
http://my.domain/). Running in foreground and turning on as much
logging as possible indicated I was getting the following error:
relay_close_http(con, 400, "repeated header line", 0);
I really don't understand why or how this error was caused, but I
eventually found that the standard (?) way of doing this is 'request
header expect "my.domain" from "Host"'.
Thanks.
--david