Forum Discussion
Dec 07, 2009
Stream iRule Help
I want this iRULE to modify the returned URL based on HTTP request.
Problem: A8001 is the local server name. It changes from server to server. We don’t want to expose local server name ...
Dec 10, 2009
thanks guys i got it working.
this is the rule i used.
when HTTP_REQUEST {
set host [HTTP::header host]
if { [matchclass [HTTP::uri] contains $::A_URIs_no_persist] } {
persist none
pool Pool_A
event disable
}
}
when HTTP_RESPONSE {
STREAM::disable
if {[HTTP::status] ==200 and [HTTP::header value Content-Type] contains "text" }{
STREAM::expression "@http://A8101:8001@http://$host/@ @http://A8102:8001@http://$host/@ @http://A8103:8001@http://$host/@ @http://A8104:8001@http://$host/@ @http://A8105:8001@http://$host/@ @http://A8106:8001@http://$host/@"
STREAM::enable
}
}
going to add a regex to it to make it more efficient.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
