"without proxypass its working" - so, without the iRule?
is your screenshot related to SSL error that you see when iRule is configured? Does it work as expected (ssl too) when you remove iRule? I would argue that in this case, default pool will always be selected (does default pool support SSL?)
What's the output of this command? (replace IP with a member of POOL_SSL)
(echo -e "GET /test/ HTTP/1.1\r\nHost: a.b.c.com\r\nConnection: Close\r\n\r\n";sleep 1) | openssl s_client -connect 10.xxx.yyy.zzz:4004
If your iRule balances between one pool that does not support SSL, and one that does support it, and you applied serverssl profile on Virtual Server, you might want to disable SSL when non-ssl pool is selected:
when SERVER_CONNECTED {
if {[LB::server port] != 4004 } { # use "AND" statement for additional ports
SSL::disable
}
}