Forum Discussion
aniaz_161592
Nimbostratus
Sep 20, 2014Irule for different URL's to one URL
I have running with multiple url's as mentioned below under one VIP:
https://www.abc.com/abc/service/
https://www.abc.com/def/service/
https://www.abc.com/ghi/service/
https://www.abc.com/jkl/se...
The_Bhattman
Nimbostratus
Sep 20, 2014Hi Aniaz,
Here is untested rule that could you could start with
when HTTP_REQUEST {
Makes sure that host and uri are lower case
set host [string tolower [HTTP::host]]
set uri [string tolower [HTTP::uri]]
if { $host eq "www.abc.com" } {
if {!($uri starts_with "/abc/service/") } {
Reject the request if it doesn't start with /abc/service/
reject
} else {
return
} else {
reject it if it does not match www.abc.com
reject
}
}
I hope this helps
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