lancevo7_253506
Mar 10, 2017Nimbostratus
Irule to forward to pool AND block uri
Hi,
I have iapp used for multiple fqdn and pool I have an irule for host and pool but I need to add irule for a specific host to autorize only one uri data group list Probleme is this irule apply to all fqdn
Irule one :
when HTTP_REQUEST { if { [HTTP::host] eq "1.toto.com" } { pool pool_https_toto1 } elseif { [HTTP::host] eq "2.toto.com" } { pool pool_https_toto2 } }
Irule two :
when HTTP_REQUEST { if { [ class match [string tolower [HTTP::uri]] contains allowed_uris ] } { return else { drop } } }
I need to apply the second irule only on specific host, how i can do this ?