Forum Discussion
Esa_H_192976
Nimbostratus
Sep 02, 2015Re-routing with SSL problem
Hi there
I'm a newbie with LTM and have been struggling with following some time now, with no success...
I have two servers in a pool with load balancing and SSL decryption at LTM. Everyth...
Esa_H_192976
Nimbostratus
Sep 08, 2015Hi and thanks for the help... Indeed, that is what I really would like to have, but somehow I just can't get it to work.
the example:
Pool 1 contains server1, Pool 2 contains server 2...
- https://domain.com --> should go to pool 1.
- if a link on server 1 contains "Tequila" (https://domain.com/tequila) ---> should go to pool2
- if a link on server 1 contains "Whiskey" (https://domain.com/whiskey) ---> should go to pool3 ... an so on
and...
- if a reply from server contains e.g. username "Homer" ---> should go to pool4
I have this kind of an iRule... (copied from Devcentral)
when HTTP_REQUEST {
log local0. "request received"
if { [string tolower [HTTP::uri]] starts_with "Tequila" } {
log local0. "request for service received. Selecting end server"
pool Pool2 }
elseif { [string tolower [HTTP::uri]] starts_with "Whiskey" } {
log local0. "request for service received. Selecting end server"
pool Pool3
}
else { pool Pool1
log local0. "Condition not matched. to Pool 1..."
}
}
when SERVER_CONNECTED {
log local0. "Connection from [IP::client_addr]:[TCP::client_port] to 2. server: [IP::server_addr]:[TCP::server_port] established."
}
Somehow it just not work properly the connection is taken to wrong server of not at all
Esa
- boneyardSep 08, 2015
MVP
well the combination string to lower with a comparison that contains a Uppercase letter wont work of course. start with changing that, i.e. : if { [string tolower [HTTP::uri]] starts_with "tequila" } {
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