Forum Discussion
atoth
Cirrus
Mar 02, 2017http to http without a 30x redirect?
Sorry, question should say http to https without a 30x redirect. when HTTP_Request {
if
set usessl 1
} else {
set usessl 0
}
}
when Server_Connected {
if { $usessl == 1 } {
ssl::profile
} el...
Mar 02, 2017
So if I understand you correctly, you wish to send traffic to two different pools. Where one pool uses HTTP servers and the other pool uses HTTPS servers? So based on the URI the BIG-IP virtual server it can serve both websites originating from either HTTP or HTTPS, while the client continues to stay connected to the same virtual server talking for example HTTP?
Maybe this piece of code helps you going:
when CLIENT_ACCEPTED {
SSL::disable serverside
}
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/Fwoosh/" } {
set uri [string range [HTTP::uri] 8 end]
HTTP::header replace "Host" ""
HTTP::uri "/Bar/$uri"
LB::detach
SSL::enable serverside
pool some_https_pool
}
}Your VS will need a default_pool (HTTP) and an attached serverssl profile.
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