Forum Discussion
cezmic_14413
Nimbostratus
May 17, 2007SSL redirect
Hi everybody
I like to know if it's possible to redirect something like that :
http://my.domen.com
to:
https://my.domen.com :5554/app
Colin_Walker_12
Sep 28, 2007Historic F5 Account
Sure! 😄
All you'd need is a port 80 only virtual server with an iRule that looks something like:
when HTTP_REQUEST {
if { [HTTP::host] equals "my.domen.com"} {
HTTP::redirect "https://[HTTP::host]:5554/app"
}
}Then another virtual server to handle the traffic once it's redirected to port 5554. Alternatively you could create just one Virtual Server and add some extra logic to the rule to ensure that only the port 80 requests are redirected.
HTH,
Colin
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
