Jeremy_Schonebe
Jul 07, 2017Nimbostratus
Adding HTTPS redirtct to existing iRule
Greetings - I am trying to edit an existing iRule so that http requests are redirected to https. The issue is, I have several elseif statements in this iRule that I do not want redirected to https. Below is the existing iRule. Can I redirect http requests for the first if statement only?
when CLIENT_ACCEPTED { SSL::disable if {([TCP::local_port] == 443 )} { SSL::enable pool MWSTEST_MDU_COM_HTTPS_POOL } elseif {([TCP::local_port] == 8090 )} { pool MWSTEST-MDU-COM_8090_POOL } elseif {([TCP::local_port] == 8000 )} { pool MWSTEST-MDU-COM_8000_POOL } elseif {([TCP::local_port] == 8085 )} { pool MWSTEST-MDU-COM_8085_POOL }
else reject }