Forum Discussion
Maxim_Taskov_90
Nimbostratus
Mar 07, 2006HTTP to HTTPS and Back
Hi, I am sorry if this question has been asked before but I could not find an answer anywhere...including F5 Tech Support.
I have two virtual servers, one HTTP and one HTTPS, for the same We...
Mar 08, 2006
The only benefit of using "starts_with" over "contains" is to check whether the uri is at the start of the request. There is no significant performance improvement from one to the other.If you use the contains, then all of these requests would match
http://server/getting_started/contact.asp
http://server/some_path/getting_started/contact.asp
http://server/some_other_path/page.html?foo=/getting_started/contact.asp
Not that this is likely to happen, but it's an option. To be the safest, you should put all known paths in your secure_uri's class and use the starts_with operator. But, if you aren't concerned with rogue uri's circumventing your logic, then the contains should work just fine.
With regards to performance on the rule itself. You are probably better off with two rules so you don't have the overhead of the check on the server port in each request. But, that overhead is fairly negligible so you should pick the option that is most maintainable for you.
-Joe
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