Forum Discussion
Kirit_Patel_521
Nimbostratus
Mar 26, 2010http to https redirect
I am trying to do the following how can that be achieved using irules
http(S)://renprod.ctb.com will go to http://renprod.ctb.com/ctb.com/control/main
http(S):/...
hoolio
Cirrostratus
Mar 26, 2010Do you want to redirect http and https / to https://renprod.ctb.com/ctb.com/control/main and /admin to https://renprod.ctb.com/admin/control/main?
If so you could create separate HTTP and HTTPS virtual servers. Add a client SSL profile to the HTTPS VIP and then add an iRule like this to both VIPs:
when HTTP_REQUEST {
Check the requested path
switch [HTTP::path] {
"/" {
HTTP::redirect "http://renprod.ctb.com/ctb.com/control/main"
}
"/admin" {
HTTP::redirect "https://renprod.ctb.com/admin/control/main"
}
default {
Take some default action?
}
}
}
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects