Forum Discussion
jnantel
Nimbostratus
Feb 07, 2012http to https with ExtJS lib derived content
To give you a quick summary of my setup:
I am using F5 Bigip LTM to terminate incoming https sessions and forwarding to the webservers with http. There are 2 webservers and they both work co...
nitass
Employee
Feb 08, 2012can you try something like this?
STREAM::expression wiki
http://devcentral.f5.com/wiki/iRules.stream__expression.ashx
e.g.
[root@ve1023:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.19.79:80
ip protocol 6
rules myrule
profiles {
http {}
stream {}
tcp {}
}
}
[root@ve1023:Active] config b pool foo list
pool foo {
members 200.200.200.101:80 {}
}
[root@ve1023:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
STREAM::disable
HTTP::header remove "Accept-Encoding"
}
when HTTP_RESPONSE {
if {[HTTP::header value Content-Type] contains "text"}{
STREAM::expression {@http://host/wiki/blahblah.php@https://host/wiki/blahblah.php@}
STREAM::enable
}
}
}
[root@ve1023:Active] config curl http://200.200.200.101/test.html
...
this is host 101.
...
http://host/wiki/blahblah.php
...
[root@ve1023:Active] config curl http://172.28.19.79/test.html
...
this is host 101.
...
https://host/wiki/blahblah.php
...
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