Forum Discussion

aweise_7447's avatar
aweise_7447
Icon for Nimbostratus rankNimbostratus
Jan 27, 2011

HTTPS redirect based on URI

Greetings,

 

 

We have a VIP that sends traffic to an SSL VPN appliance. The VIP is running on 443 and has a simple pool applied to it. However, we'd like to be able redirect users to a specific URL if they type in an incorrect URL.

 

 

For example, the correct URL is https://www.company.com/vpn. Users are simply forgetting to type in the URI portion so that it ends up being "https://www.company.com/". This causes problems and the users are not able to authenticate to the VPN appliance.

 

 

Can we have an iRule that does something like this:

 

 

when HTTP_REQUEST {

 

switch -glob [string tolower [HTTP::uri]] {

 

"/" {

 

HTTP::redirect "https://www.company.com/vpn"

 

}

 

 

But instead does this for HTTPS? The SSL is not terminated on the BigIP - it's done on the VPN appliance.

 

 

Thanks!