Forum Discussion
Mike_Pones_6391
Nimbostratus
Jun 21, 2005Simple Rule ? (I think)
This will be my first time implementing rules on an BIGIP so I have a few quick questions. I have about 30 different URL's that will be hitting my BIGIP (ex.. myweb.com, myweb.org, test.myweb.com) and a portion of the URL has the same name. Would I use "HTTP_URI contains myweb" or is there an easier way to determine that. Or is there a way that I can say here are all the URI's that belong in this group then check that. I see there are sets is that what they are used for. Out of my 30 URL's they are broken up into three groups.
Thanks in advance.
- Mike_Pones_6391
Nimbostratus
Sorry I meant "Classes". - Scott_Tennican_Historic F5 AccountFirst, I think you want to test the http_host not the http_uri.
rule myrule { if (http_host contains "myweb") { use pool pool1 } else if (http_host contains "bobweb") { use pool pool2 } else { use pool pool3 } }
class their_class { "bobweb" "danweb" } class our_class { "yourweb" "myweb" } rule myrule { if (http_host contains one of our_class) { use pool pool1 } else if (http_host contains one of their_class) { use pool pool2 } else { use pool pool3 } }
- Mike_Pones_6391
Nimbostratus
Thanks for your answer gumby. I was looking in the documentation and I wanted to make sure I understand the diff between the http_uri and http_host. - Scott_Tennican_Historic F5 AccountAlmost correct.
- Scott_Tennican_Historic F5 AccountNope, it's not possible to parse encrypted traffic.
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