Forum Discussion
Marcello_Costa_
Nimbostratus
Oct 20, 2017Irule to different virtual server on different route domain/partition
Hello Guys,
I have one question about iRule confection. I created on iRule to redirect HTTP request to different Virtual Servers based on http subdomain of urls.
The problem is that I need redirect t...
Kevin_Davies
Nacreous
Oct 23, 2017Given your iRule below see if this works.
when HTTP_REQUEST {
switch [HTTP::host] {
"xxxx.com.br" { virtual /Partition/(virtual server) }
"xxxx.com.br" { virtual /Partition/(virtual server) }
"xxxx.com.br" { virtual /Partition/(virtual server) }
}
}
However given the nature of partition security it may not allow you refer to a virtual server in another partition. In that case you may be forced to send them back a 302 redirect and the client will connect directly to the virtual server.
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
