Forum Discussion
Cta_dev_116550
Nimbostratus
Mar 11, 2015Host with Multiple URI
Hello,
I have one listening IP for many application's, within the application some have requirement for datagroup to allow specific source IP's, but withing one application I have multiple uri's, the...
Cta_dev_116550
Nimbostratus
Mar 11, 2015thanks updated without the prefix
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::host]] {
"www.test1.com { switch -glob [string tolower [HTTP::uri]] {
“/uri1" -
“/uri2" -
{
if { ([class match [IP::remote_addr] equals "Customer_Allowesd_IP"]) } { return } }
}
switch -glob [string tolower [HTTP::uri]] {
“/uri1" -
“/uri2" -
{
if { ([class match [IP::remote_addr] equals "Customer_Allowesd_IP"]) } { return } }
}
}
- nitassMar 11, 2015
Employee
if you do not use glob-style matching, you know, you can remove -glob option.
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