Forum Discussion
GavinW_29074
Nimbostratus
Sep 23, 2011Selective Proxying ala ProxyPass
Hi there,
We're currently evaluating migrating from our existing Apache web-farm to a F5 device, and our initial tinkering is throwing up some questions that I'd like to get some input on.....
GavinW_29074
Nimbostratus
Sep 27, 2011Brian
Cheers for the pointer...
In the end, i've set it up using the 'class match' and a iRule Data list of allowed URLs.
It also allows me to redirect to the application for any requests to a non-valid URL, rather than just rejecting the users request...
FYI, the code is:
when HTTP_REQUEST {
if { [HTTP::path] eq "/" || [HTTP::path] eq "" } {
HTTP::redirect "https://[HTTP::host]/ApplicationA/logon"
} elseif { not [class match [HTTP::path] starts_with ApplicationA_AllowedURLs] }{
HTTP::redirect "https://[HTTP::host]/ApplicationA"
}
}
Regards
Gavin
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