13-Mar-2013 20:20
Hi,
There are multiple content in our websites which are Media files most are swf (flash), they do not stream like a normal media/video file, rather they get downloaded completely and then start playing.
People say that this was working when the site was loadbalanced by APACHE, and problem started after migration to LTM
Any suggestions?
Version 10.2
13-Mar-2013 22:47
Earlier the video files used to start playing with some part downloaded (Live Streaming) and simultaneously remaining part was downloaded (Like a normal Youtube video)
Now - It starts playing only when the complete file is downloaded to browser
13-Mar-2013 23:36
Real Time Messaging Protocol
http://en.wikipedia.org/wiki/Real_Time_Messaging_Protocol
can you post the virtual server configuration?
14-Mar-2013 01:55
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
}
}
}
14-Mar-2013 01:59
Attached default stream profile "Stream" on the VIP
Added applicaton/shockwave in the compression list on HTTP profile
Not none of the above 2 helped