Forum Discussion
Greg_Haywood_10
Nimbostratus
Oct 12, 2005newbie case sensitive question
I am attempting to create rules for a site that has loads of .asp scroipts in the root directory (I know, not created by me) These scripts have mixed case ind is basicly a nightmare.
I have no ex...
Martin_Machacek
Oct 14, 2005Historic F5 Account
Greg,
why do you need to check the URIs? If the requested ASP does not exist on the origin server (node), the server will issue "bye, bye" (404 Not Found) response on it's own 🙂 If there are some ASPs on the server that you do not want to be exposed at all, then I'd suggest to remove them.
Having said that, you rule might look like this (assuming that the ".asp" extension is always lowercase and also URIs are in the root):
rule name_check {
if(substr(http_uri, 30) == "" and http_uri ends_with ".asp" and substr(http_uri, 1, '.') matches_regex "^[a-zA-Z0-9]+$") {
use pool some_pool
} else {
redirect to "http://betterlucknexttime.com"
}
}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
