I think it is using RTMPT as everything works on HTTP/HTTPS only
Config (Modified to remove propitiatory data)
================================================
VIP
------
virtual test.net-https {
snat automap
destination 10.10.10.10:https
ip protocol tcp
rules test.net.iRule
profiles {
test.net-HttpProfile {}
test.net-SSL {
clientside
}
tcp-lan-optimized {
serverside
}
tcp-wan-optimized {
clientside
}
}
}
==============================================
HTTP Profile
---------------
profile http ala.sabanow.net-HttpProfile {
defaults from http-wan-optimized-compression-caching
ramcache disable
compress content type include {
"text/"
"application/(xml|x-javascript)"
"application/javascript"
}
compress content type exclude none
}
==============================================
iRule
--------
rule test.net.iRule {
when RULE_INIT {
set safe_http_methods [list "GET" "PUT" "DELETE" "POST" "HEAD"]
}
when CLIENT_ACCEPTED {
set trafficLog "[IP::remote_addr] -> "
}
when HTTP_REQUEST {
set trafficLog "[HTTP::method] [HTTP::uri]"
Reject unsupported HTTP methods
if { ![matchclass [HTTP::method] equals $::safe_http_methods] } {
set trafficLog "$trafficLog REJECTED:badMethod"
log local0. $trafficLog
HTTP::respond 200 content "PROTOCOL ERRORAccess Denied: Unsupported HTTP METHOD.
Please contact customer support for further details." noserver
}
Before we consider sticky sessions
switch -glob [string tolower [HTTP::uri]] {
"/outtage" -
"/maintenance.html" {
HTTP::respond 200 content "Maintenance HTML Here" noserver
}
"*.exe*" -
"*.dll*" -
"/index.html" -
"/sso/" -
"/sso/index.html" -
"/jboss.css" -
"/logo.gif" -
"/manager*" -
"/status*" -
"/jmx-console*" -
"/web-console*" -
"/jbossws*" {
Unauthorized Access Attempted
set trafficLog "$trafficLog REJECTED:secureURI"
log local0. $trafficLog
HTTP::respond 200 content "PROTOCOL ERRORAccess Denied: Secure URI.
Please contact customer support for further details." noserver
}
"/" -
"" {
Auto-redirect to main login page
set trafficLog "$trafficLog 302 REDIRECT:mainLogin"
log local0. $trafficLog
HTTP::respond 302 noserver Location "https://[HTTP::host]/test/Web/Main"
}
}
Enforce Sticky Sessio
if { [HTTP::cookie "JSESSIONID"] ne "" } {
persist uie [HTTP::cookie "JSESSIONID"] 1920
}
Finally, Loadbalance requests not handled above
switch -glob [string tolower [HTTP::uri]] {
"/gatekeeper*" -
"/scorm_launch*" -
"/aicc_bridge*" {
use pool test-content-tomcat-pool
}
"/assets*" -
"/prodasset*" -
"/content*" -
"/deskassets*" -
"/prodcontent*" -
"/production*" -
"/test_images*" {
use pool test-content-apache-pool
}
"/axis*" -
"/test*" {
use pool test-app-pool
}
}
}