Forum Discussion
david_ed_165839
Nimbostratus
Feb 28, 2016iRule settings to simulate a virtual server setup
Hi all;
We've been moving our applications from our datacenter to the Azure cloud. I've deployed the F5 in Azure, but due to the one interface allowed I can only have one virtual server per protoco...
arpydays
Nimbostratus
Feb 28, 2016Hi,
the uri is not contained in the host header and has a separate irule command to extract the value, this irule below should work although traffic policies may be the recommended approach for what you need to do...
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] eq "cloudstuff.anywhere.com" } {
switch [string tolower [HTTP::uri]] {
"/p6" {
HTTP::header insert WL-Proxy-SSL true
pool pool_cloudstuff.anywhere.com_7123
}
"/" {
HTTP::redirect "https://cloudstuff.anywhere.com/p6"
}
}
}
}
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
