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, 2015I got this resolved using the following,
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 } }
}
"www.test2.com” {
switch -glob [string tolower [HTTP::uri]] {
“/uri3" -
“/uri4" -
{
if { ([class match [IP::remote_addr] equals $::Customer_Allowesd_IP]) } { return } }
}
}
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