Forum Discussion
Steve_Spencer_1
Nimbostratus
Jul 05, 2005Direct Access irule problem...
Hello,
I have built (copied) the following irule and am having trouble making it do what i want... I want a url like http://view.usg.edu/dvw5 to go directly to the web root on the mach...
Colin_Walker_12
Jul 06, 2005Historic F5 Account
Morning sspencer,
It looks to me as though the issue is the fact that you're passing the full, initial request to the selected node, instead of changing the destination address.
When you use the pool command to decide where the request will be sent, it takes the original request (including the full URI) and sends it to that pool (or node). This is why the "/dvw5" is being carried over, and as a result, it's why you're seeing the 404 Error.
So to remedy this, you would want to change:
pool VistaWebApps member $node
To be something like:
[HTTP::redirect $node]
This would change the intended destination, and as such should remove the URI from the request. This is a full HTTP redirect, rather than just a load balancing decision, so you should get the desired result of seeing the request go to just the IP of the intended node.
Give it a try and let me know if you have any questions.
-Colin
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