Forum Discussion
carter91_13591
Feb 26, 2010Nimbostratus
SSL over port 8080
I have a web server that has two sites running on it. One on port 80, and the other on port 8080.
I have a 3 virtual servers created on the F5. One for port 80, one for port 8080, and ...
Elias_O_16228
Apr 30, 2013Nimbostratus
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]"
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects