Forum Discussion
harshads_204995
Nimbostratus
Aug 11, 2015Strange redirection
I'm facing a weird issue - we have two websites (managed through an iRule) under the same HTTPS VIP:
https://www.somedomain.com/abc
and
https://www.somedomain.com/def
Suppose I browse to http...
Stanislas_Piro2
Cumulonimbus
Aug 11, 2015Hi,
the irule should work. switch command is better than multiple "elseif", but it should work.
try this irule :
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
"/someuri*" {use pool pSomePool}
"/abc*" {use pool pABC}
"/def*" {pool pDEF}
"/someotheruri*" {use pool pSomeOtherPool}
default {
HTTP::respond 404 content {
URL Error
This URL does not exist on this server
} noserver
}
}
}
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