The VIP : https://abc.com
its pool members are : 10.2.3.2:2001 10.2.3.3:2001
Both the backened servers have webpage configured with extension which is accessible only when accessed as : https://10.2.3.2:2001/etc/del
And doesn’t reply only with : https://10.2.3.2:2001
Now how should i configure irule in VIP. So that when it starts the connection to backened server with extension. Or is there a way in server end that whenever a request come for https://10.2.3.2:2001 it auto redirects to https://10.2.3.2:2001/etc/del .
Venky
May 29, 2017, 1:07pm
2
M_2
May 29, 2017, 1:11pm
3
can you try the below irule.
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "abc.com" } {
if { [string tolower [HTTP::uri]] equals "/" } {
HTTP::respond 302 noserver Location "http://[getfield [HTTP::host] : 1]/etc/del"
} else {
pool mypool.pool
}
}
}
Thanks for prompt response but still unable to access https://abc.com
is there something to do in backend server for F5 to respond ?
Anesh
May 29, 2017, 4:40pm
7
try below , also tail -f /var/log/ltm when sending request to vip
when HTTP_REQUEST {
if { (([HTTP::host] equals "abc.com") or ([HTTP::host] equals "www.abc.com")) } {
log local0. "host match"
if { [HTTP::uri] equals "/" } {
log local0. "uri match"
HTTP::redirect "https://[LB::server addr]:2001/etc/del"
}
}
}