22-Jul-2021
15:02
- last edited on
04-Jun-2023
19:22
by
JimmyPackets
I am unable to get his to function properly and I believe it's the logic I have.
I am attempting to pass all traffic through with the exception of a port coming across in the url with the same fqdn and then passing that to another pool with the proper port on the back end.
Example:
happy.com
happy.com:1001
when HTTP_REQUEST {
"happy.com" {
if { [HTTP::host] contains ":"} {
HTTP::header replace Host "[getfield [HTTP::host] : 1]"
pool HAPPY_1001
}
pool HAPPY_443
}
}