Forum Discussion
Mike_Graston_10
Nimbostratus
Jan 26, 2007Adding a uri if one doesn't exist
Currently I have a url split between several pools depending on uri portion. How would I modify the Irule to insert a uri if none is present?Any help would be appreciated...
when HTTP_REQUES...
Jan 30, 2007
The only way to test this is to include logging statements on the BIG-IP as well as web server logging on the backend server.
when HTTP_REQUEST {
log local0. "URI: [HTTP::uri]"
if { [HTTP::uri] equals "/" } {
log local0. "URI is empty, changing to http://[HTTP::host]/ghi..."
HTTP::uri "/ghi/"
} else {
log local0. "URI is not empty, leaving alone..."
}
}
Then look in the /var/log/ltm file on the BIG-IP to make sure that the iRule is functioning correctly. If you see that is the case, then you'll have to look at the web server's log (or a packet trace) on the web server to verify the GET request is now "/ghi/". If your webserver is still showing a "GET / ..." then you'll have to contact Technical support as this is very basic functionality and you are using the iRule correctly.
-Joe
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