Forum Discussion
slesh_219299
Mar 17, 2016Cirrus
URL Maintenance Page irule
Hello guys
I need some support with irule :
- is it possible to change this irule in way when some specific www is requested than its going to MP .
I dont need option with pool members = 0 there ...
tatmotiv
Mar 21, 2016Cirrostratus
I still do not exactly understand what you are planning to do, but generally speaking, it is possible to create an iRule that takes the URI and the host header into account. Taking your example above, the host would be "www.google.com" and the URI would be "/shop/x1". You can do with that whatever you like, e.g.:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/shop/x1" } {
HTTP::respond 200 content { }
}
}
or
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] starts_with "www.google.com" } {
HTTP::respond 200 content { }
}
}
Is that what you meant??
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