Forum Discussion
Gerardo_Garcia_
Nimbostratus
Jul 09, 2008Excluding some urls for the STREAM conversion
I have the following iRule that converts http to https for external users only as defined on the internal_net
However, when the page contains calls to google.com, amazon.com, ebay.com i...
Gerardo_Garcia_
Nimbostratus
Jul 24, 2008OK, I think someone needs to help me here
This is the new iRule and it works following the first example here
http://devcentral.f5.com/wiki/default.aspx/iRules/STREAM__expression.html
I don't know very well regular expressions but this is my solution.
when HTTP_RESPONSE {
if { not ([matchclass [IP::client_addr] equals $::internal_net])}{
set debug 1
STREAM::disable
STREAM::expression {@http://stage.example.com@https://stage.example.com@ @http://static.regional.example.com@https://static.regional.example.com@ @http://static.stage.regional.example.com@https://static.stage.regional.example.com@ @http://static.example.com@https://static.example.com@ }
STREAM::enable
}
}
If you think you can improve it plese do it.
One importan thing here is that I cannot convert all the *.example I need to have a set of domains with example not all of them.
For example stage.server1.example.com should be excluded and maybe others.
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