Do you want to access the HTTPS application through the LTM with this port or with the standard 443?
Want to access non SSL port 9089. Absolutely, the https does not have the port.
See output below:
ltm virtual HTTPS-TEST-Virtual-Server {
destination 10.10.10.10:9089
fallback-persistence source_addr
ip-protocol tcp
mask 255.255.255.255
persist {
cookie {
default yes
}
}
pool HTTPS-TEST-Pool
profiles {
Client_Profile {
context clientside
}
server_side_profile {
context serverside
}
http { }
tcp-lan-optimized {
context serverside
}
tcp-wan-optimized {
context clientside
}
}
rules {
redirect_irule
}
}
ltm pool HTTPS-TEST-Pool {
members {
9.9.9.9:9089 {
session monitor-enabled
}
9.9.9.10:9089 {
session monitor-enabled
}
}
monitor min 1 of { https }
}
------------------------
when HTTP_REQUEST {
Check if the client used an SSL cipher
if {not ([catch {SSL::cipher version} result]) && [string tolower $result] ne "none"}{
Client did use a cipher
log local0. "\$result: $result. Allowing encrypted request."
} else {
Client did not use a cipher
log local0. "\$result: $result. Redirecting unencrypted request. [HTTP::host][HTTP::uri]"
HTTP::respond 302 Location "https://[HTTP::host][HTTP::uri]"
}
}