Experts,
I am new to LB. Have got a requirement to auto redirect from http to https. End users have been given https://abc.com/ URL and its working fine. but if an end user enters http://abc.com/ then URL doesn't work beacuse there is no Virtual server and pool configured for http. management wants to auto redirect to https://abc.com/ url if any user try to acecss http://abc.com/
I have tried below but no success.
1. 1 virtual servers for https and associated with a pool
2. 1 Virtual server for http and associated default pool (discard)
3. Added below trafficscript for http pool.
$rawurl = http.getRawURL();
if( string.contains( $rawurl, "http://abc.com/" ))
{
http.redirect( "https://abc.com/" );
}
Can you please suggest how can i achieve it?
Solved! Go to Solution.
Was able to achieve it referring below
https://kb.pulsesecure.net/articles/Pulse_Secure_Article/5878/?kA1f1000000bnGL
Was able to achieve it referring below
https://kb.pulsesecure.net/articles/Pulse_Secure_Article/5878/?kA1f1000000bnGL
You need to apply the traffic script to the VIP or you can use the drop down menu to apply the redirect.