Forum Discussion
craff_17758
Sep 25, 2007Historic F5 Account
iRule stopped working with upgrade to 9.4.1
All,
I've been going over this iRule for a while, and I don't see what broke.
This iRule worked in version 9.2.3, but stopped doing its job in 9.4.1. The purpose of the rule is to translate f...
craff_17758
Oct 01, 2007Historic F5 Account
I have more information, thanks to a reproduction that I put together. I stripped out the pool selection parts, and just focussed on the translation parts.
I put a file named test.aspx on an internal web server, and pointed a virtual server at it with the iRule applied.
When I requested test.aspx from the webserver, it is returned as we would expect.
If I request test.ospx from the virtual server, I get a 404 Not Found from the Web Server.
If I request test.aspx from the virtual server, I get the page with all the aspx translated to ospx
So it would appear that STREAM::expression works just fine. What is broken is this part:
when HTTP_REQUEST {
set uri [HTTP::uri]
if { [string tolower [HTTP::uri]] contains ".osp" } {
replace remote_addr with .ospx -> .aspx and .osp -> .asp
set uri [string map -nocase {.ospx .aspx .osp .asp} $uri]
Set target uri to the version after the replaces have been run
HTTP::uri $uri
}
}
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