Code:
ip4="xxx.xxx.xxx.xxx"
table <service1> { 127.0.0.1 }
log connection
http protocol https {
match request header append "X-Forwarded-For" value "$REMOTE_ADDR"
match request header append "X-Forwarded-By" value "$SERVER_ADDR:$SERVER_PORT"
match request header set "Connection" value "close"
tcp { sack, backlog 128 }
tls { keypair badda.bing.org }
match request header "Host" value "badda.bing.org" forward to <service1>
}
relay wwwtls {
listen on $ip4 port 443 tls
protocol https
forward to <service1> port 8080 check icmp
}
It seems this one is working.
https request get me my website, yes it is working.