Forum Discussion
roger10dc_46053
Nimbostratus
Apr 03, 2008OWA HTTP RESPONSE
Hello - newbie to iRule so hope my request is possible.
I have several OWA 2007 CAS behind BigIP running 9.4.4. I have a pair for external access, and another pair for internal OWA access.
When OWA 2007 launches, there is a link to a Mimosa Mail Archive server on the tool bar. The problem is the link points to an internal link and I need to translate to external before it reaches the users.
For example, if the link is https://archive.mydomain.corp I need to user to receive https://archive.mydomain.com.
Is this possible? I did try the following without success...
when HTTP_RESPONSE_DATA {
if { [regsub -all "https://archive.mydomain.corp/NearPoint/Client/DefaultFrame.aspx" [HTTP::payload] "https://archive.mydomain.com/NearPoint/Client/DefaultFrame.aspx" newdata] } {
HTTP::payload replace 0 [HTTP::payload length] $newdata
}
}
Many thanks,
Jonathan
- The_Bhattman
Nimbostratus
You can probably do this with the stream profile. Simply do a search on the devcentral for "stream profile" and look for the first article you see or Click here for a short cut. - Colin_Walker_12Historic F5 AccountIt is definitely possible via an iRule, but as has already been mentioned, a stream profile is the preferred way of making this type of global replacement. Not only is it simpler, but it's built into the profiles system, so it's faster, as well.
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