Forum Discussion
ema_128890
Nimbostratus
Jun 29, 2016Multiple http to https redirects
I have a VS setup with Layer 4 Performance and listening on https. I would like to redirect multiple sites to our internal servers. Here is what I have so far for one of the site.
when HTTP_RE...
Yann_Desmarest
Cirrus
Jun 29, 2016Hi,
Here the working irule :
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::host]] {
"123.abc.com*" {
HTTP::redirect "https://server1/reports"
}
}
}
If you need to redirect the user to server1, you need the
HTTP::redirect or HTTP::respond commands.
But if you need to forward the traffic to server1, you will need to add the following command :
node server1 443Yann_Desmarest
Cirrus
Jun 29, 2016I forget to mentioned that I think HTTP events are not available when you have a Performance L4 VS. You need to configure a Standard VS with SSL bridging (clientssl and serverssl profiles)
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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