Forum Discussion
PRM_72806
Nimbostratus
Nov 14, 2012http to https rewrite serverside
Hello,
Been beating my brain trying to figure this one out (looking at a plethora of examples as well to no avail). In a nutshell here is what we have and what I'm trying to accomplish. ...
nathe
Cirrocumulus
Nov 14, 2012Actually
How about this:
when HTTP_REQUEST {
Disable the stream filter for all requests
STREAM::disable
}
when HTTP_RESPONSE {
Replace http:// with https://
STREAM::expression "@http://$lower_host.somedomain.com:$local_port@https://$lower_host.somedomain.com:$local_port@"
Enable the stream filter for this response only
STREAM::enable
}
}
From: https://devcentral.f5.com/wiki/iRules.STREAM__expression.ashx
Not got my lab available to test this but give it a go. Hopefully it'll be corrected by fellow DC peeps if incorrect.
Rgds
N
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