paul_fairclough
Sep 26, 2007Nimbostratus
port redirect - server side
** SOLVED ** problem with other Irule
We need to allow an inbound port 80 request to the F5 vip. We then need to complete the connection to the backend server on port 8080. ( not url redirect )
Following irule was created with this in mind but doesn't provide the correct functionality ( doesn't redirect to port 8080 )
when HTTP_REQUEST {
if { [HTTP::host] starts_with "www.sitea.com"} {
pool Apache_Pool
}
elseif { [HTTP::host] starts_with "www.siteb.com" } {
HTTP::header replace "Host" "www.siteb.com:8080"
}
}
Cheers