Forum Discussion
Ajmal_2608
Nimbostratus
Jan 11, 2013Selective pool member based on uri
Hi,
Some of my webservers are not responding and we take them out from pool at times. The task is to have something like:
https://[HTTP::host]/one
select pool member 1 &...
nitass
Employee
Jan 11, 2013so not very sure whether the class created should be a data group or something else.yes, class is data group (in gui).
e.g.
[root@ve10:Active] config b virtual bar443 list
virtual bar443 {
snat automap
pool foo
destination 172.28.19.252:443
ip protocol 6
rules myrule
profiles {
clientssl {
clientside
}
http {}
tcp {}
}
}
[root@ve10:Active] config b pool foo list
pool foo {
members 200.200.200.101:80 {}
}
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if { [class match -- [string tolower [HTTP::path]] equals mainredirect] } {
HTTP::uri [class match -value [string tolower [HTTP::uri]] equals mainredirect]
}
}
}
one
[root@ve10:Active] config ssldump -Aed -nni 0.0 port 443 or port 80 -k /config/ssl/ssl.key/default.key
New TCP connection 1: 172.28.19.251(42778) <-> 172.28.19.252(443)
1 1 1357914860.8571 (0.0478) C>S SSLv2 compatible client hello
1 2 1357914860.8573 (0.0001) S>CV3.1(81) Handshake
1 3 1357914860.8573 (0.0000) S>CV3.1(953) Handshake
1 4 1357914860.8573 (0.0000) S>CV3.1(4) Handshake
1 5 1357914860.8592 (0.0019) C>SV3.1(262) Handshake
1 6 1357914860.8592 (0.0000) C>SV3.1(1) ChangeCipherSpec
1 7 1357914860.8592 (0.0000) C>SV3.1(36) Handshake
1 8 1357914860.8791 (0.0198) S>CV3.1(1) ChangeCipherSpec
1 9 1357914860.8791 (0.0000) S>CV3.1(36) Handshake
1 10 1357914860.8801 (0.0010) C>SV3.1(179) application_data
---------------------------------------------------------------
HEAD /one HTTP/1.1
User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Host: 172.28.19.252
Accept: */*
---------------------------------------------------------------
New TCP connection 2: 200.200.200.10(42778) <-> 200.200.200.101(80)
1357914860.8823 (0.0010) C>S
---------------------------------------------------------------
HEAD /web/main/page HTTP/1.1
User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Host: 172.28.19.252
Accept: */*
---------------------------------------------------------------
two
[root@ve10:Active] config ssldump -Aed -nni 0.0 port 443 or port 80 -k /config/ssl/ssl.key/default.key
New TCP connection 1: 172.28.19.251(42780) <-> 172.28.19.252(443)
1 1 1357914942.1202 (0.0179) C>S SSLv2 compatible client hello
1 2 1357914942.1203 (0.0000) S>CV3.1(81) Handshake
1 3 1357914942.1203 (0.0000) S>CV3.1(953) Handshake
1 4 1357914942.1203 (0.0000) S>CV3.1(4) Handshake
1 5 1357914942.1223 (0.0019) C>SV3.1(262) Handshake
1 6 1357914942.1223 (0.0000) C>SV3.1(1) ChangeCipherSpec
1 7 1357914942.1223 (0.0000) C>SV3.1(36) Handshake
1 8 1357914942.1395 (0.0172) S>CV3.1(1) ChangeCipherSpec
1 9 1357914942.1395 (0.0000) S>CV3.1(36) Handshake
1 10 1357914942.1413 (0.0017) C>SV3.1(179) application_data
---------------------------------------------------------------
HEAD /two HTTP/1.1
User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Host: 172.28.19.252
Accept: */*
---------------------------------------------------------------
New TCP connection 2: 200.200.200.10(42780) <-> 200.200.200.101(80)
1357914942.1421 (0.0007) C>S
---------------------------------------------------------------
HEAD /web/main/page HTTP/1.1
User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Host: 172.28.19.252
Accept: */*
---------------------------------------------------------------
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