Forum Discussion
john_miller_440
Nimbostratus
Nov 09, 2006simple irule for redirection
hello everyone,
I am trying to take a request from some port just add a "default" url to it. the virtual server is http://1.1.1.1:80
any requests to that address should go to http:2.2.2.2:4950/apps/index.html
I guess I dont need a pool for that, though I have one setup. but is this an irule? or is there another way to do that? when I tried somehthing like:
when HTTP_REQUEST {
HTTP::redirect http://10.201.119.4:4040/ftputil/index.jsp
}
I got this error:
01070394:3: HTTP_REQUEST event in rule (IA_Load_Util_Redirect) requires an associated HTTP or FASTHTTP profile on the virtual server (IALOADUTIL_QA).
thanks for any suggestions!!
John
- hoolio
Cirrostratus
The rule looks fine. Just add an HTTP profile to your virtual server under the VIP properties page. The default HTTP profile should work fine for this. - john_miller_440
Nimbostratus
thanks, that was it..yes I'm a newbie with irules.. - hoolio
Cirrostratus
You can use HTTP::uri to view or modify the URI before the request is sent to the node.when HTTP_REQUEST { if { [HTTP::uri] equals "/" }{ HTTP::uri "/app/index.html" } }
- hoolio
Cirrostratus
Maybe I missed something there. Are you wanting to rewrite the URI and redirect clients to another host or IP address? Or are you trying to modify the URI the client requests and pass it directly to the node without sending a redirect back to the client? Or something else?
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