Forum Discussion
vineyard_166933
Nimbostratus
Sep 23, 2014Redirect rewrite Profile
Hi.
Have an issue with published webserver.
Client --> BigIP (443)
BigIP --> Webserver (80)
We use the default http redirect rewrite profile
We have a dashboard with reports and some Java scri...
vineyard_166933
Nimbostratus
Sep 24, 2014-
1 - the last response header before requesting http is content-type application/json I believe this is the one we want to rewrite. So i tested with "json" and made a difference to the expression. Client will still request http after response. These are present in the last response: "http:\/\/url"
-
2 - tried with your stream expression and from devcentral, pasting my last irule below.
- 3 - cleared cache between changes.
Could also maybe solve this by making the client request https but it seems to make the redirect loop. iRule below.
when HTTP_REQUEST {
Disable the stream filter for client requests
STREAM::disable
}
when HTTP_RESPONSE {
Disable the stream filter for server responses
STREAM::disable
Enable the stream filter for text responses only
if {[HTTP::header value Content-Type] contains "json"}{
Replace 'old_text' with 'new_text'
STREAM::expression {@http:\/\/@https:\/\/@}
Enable the stream filter for this response only
STREAM::enable
}
}
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