Forum Discussion
John_LeMay_1062
Nimbostratus
Sep 27, 2006Combining http_request and client_accepted?
I'm working on putting together what I think will be a relatively complex rule - at least it will be for me. So far my irule experience been limited to uri rewrites and redirects. However, I now have ...
John_LeMay_1062
Nimbostratus
Sep 27, 2006Aaron,
Thank you for the reply. Your explanation seemed to simplify matters somewhat. Based on that, I came up with the following irule. However, I'm not getting the desired results. I'm receiving an error in my browser indicating the page I'm requesting cannot be found.
Based on what is below and on the configuration of the VS I described, I would expect when a client connects to "https://server" the LTM would request "http://server/path/path:81". That doesn't seem to be happening. I don't expect I still need a http redirect here. Am I wrong?
I'd also like to simplify that if/elseif/else if anyone has a recommendation.
when HTTP_REQUEST {
set uri [HTTP::uri]
if { $uri eq "" } {
set uri "/path/path"
pool pool_app_http81
} elseif { $uri eq "/" } {
set uri "/path/path"
pool pool_app_http81
} else { pool pool_app_http81 }
}
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
