Forum Discussion
Stefan_Klotz
Aug 18, 2016Cumulonimbus
Hi Habib,
I assume you have two virtual servers, one for port 80 and the other for port 443. And that each has a default pool configured. If so, then the following iRule should work:
when HTTP_REQUEST {
log local0. "Client: [IP::client_addr]"
if { ![class match [IP::client_addr] contains cdm_test_range] } {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
}
Hope that helps.
Ciao Stefan 🙂