Forum Discussion
S0S0_251956
Nimbostratus
Oct 18, 2017URI Redirection with URI Allow
Hello I'm configuring LTM to redirect traffic for "/" to /frontend-web/app/auth.html and also I want to allow only URIs that contain /frontend-web/app/ and /frontend-web/api/ for that website. I conf...
P_K
Altostratus
Oct 18, 2017I would think probably your block statement is matching the request and getting a reset.
try adding some logging to the irule and see if it is matching the redirect or block statment. If your data group is properly done, then try below irule and see if that works someway..
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] equals "/" } {
HTTP::redirect "https://[HTTP::host]/frontend-web/app/auth.html"
log local0. "redirect matched [HTTP::uri]"
}
elseif { [ class match [string tolower [HTTP::uri]] contains uri_allow ] } {
log local0. "datagroup matched [HTTP::uri].. blocking url"
return
}
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
