Forum Discussion
Dunleap_21354
Nimbostratus
Apr 10, 2008changing URI path
So I need to write a rule that will "see" the path /citrix/pnagent/confg.xml and replace it with /pnagent/config.xml removing the citrix part.
My first stab doesn't appear to be working, Any ideas on what I am missing ???
when HTTP_REQUEST {
if { [HTTP::path] equals "/citrix/pnagent/conf.xml" } {
HTTP::header replace "path" "/pnagent/config.xml"
}
}
- Dunleap_21354
Nimbostratus
I created a stream profile, giving it a name. - Nicolas_Menant
Employee
Are you doing the trace between the bigip and the client or between the bigip and the server ? - Dunleap_21354
Nimbostratus
This packet was between the LTM and the the IIS server. The information on Stream profile is pretty thin in the F5_LTM_Guide. - hoolio
Cirrostratus
The stream profile/filter only operates against the payload. So if you've added an HTTP profile to the VIP, and want to modify the path in the URI (part of the headers--not the payload), you should use nmenant's example of HTTP::path.when HTTP_RESPONSE { Disable the stream filter by default STREAM::disable Check if response type is text if {[HTTP::header value Content-Type] contains "text"}{ Replace IE with Apache, Windows with Linux STREAM::expression "@IE@Apache@ @Windows@Linux@" Enable the stream filter for this response only STREAM::enable } }
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