Forum Discussion
Sean_O_Brien_65
Nimbostratus
Feb 09, 2010url forward for http and https based on request
need an irule to forward to different url based on how the request came in...
example:
when HTTP_REQUEST {
if {[HTTP::host] equals "dev.domain1.com"}{
HTTP:...
hoolio
Cirrostratus
Feb 09, 2010Hi Sean,
Here is an example:
when HTTP_REQUEST {
Check the requested host header (set to lowercase)
switch [string tolower [HTTP::host]] {
"dev.domain1.com" {
HTTP::redirect "http://dev-domain1.domain2.com"
}
"qa.domain1.com" {
HTTP::redirect "http://qa-domain1.domain2.com"
}
default {
Take some default action?
Requests using the IP address would hit here
}
}
}
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
