Forum Discussion
Angelo
Nimbostratus
Oct 31, 2012Streaming Irule
Hi
I have a streaming profile with a i-rule to re-write content in a XML WSDL. but i reconfigured the VS for port 80 and 443 is there a way to disable the streaming for connections on port 80
this is the rule...
when HTTP_REQUEST {
STREAM::disable
HTTP::header remove "Accept-Encoding"
}
when HTTP_RESPONSE {
if {[HTTP::header value Content-Type] contains "text"}{
STREAM::expression {@http://uat.esf.mtn.co.za@https://uat.esf.mtn.co.za@}
STREAM::enable
}
}
3 Replies
- Kevin_Stewart
Employee
I'd venture something as simple as capturing the local port:when HTTP_REQUEST { STREAM::disable if { [TCP::local_port] != 80 } { HTTP::header remove "Accept-Encoding" } } when HTTP_RESPONSE { if { [TCP::local_port != 80 and [HTTP::header value Content-Type] contains "text" }{ STREAM::expression {@http://uat.esf.mtn.co.za@https://uat.esf.mtn.co.za@} STREAM::enable } }
- What_Lies_Bene1
Cirrostratus
You could add a check for the pool member source port and skip the stream replacement if it's port 80. You should be able to use the [TCP::server_port] command I would have thought. - Angelo
Nimbostratus
hi Kevin
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