Forum Discussion
MeAndMyBIGIP_60
Nimbostratus
Jun 21, 2010HTTP::URI redirect to another Pool
Trying to use the sample code here (http://devcentral.f5.com/wiki/default.aspx/iRules/HTTP__uri.html) to do something that should be very simple:
when HTTP_REQUEST {
if { [HTTP::uri] ends_with "content1" } {
pool content_pool_1
} elseif { [HTTP::uri] starts_with "/abc" } {
pool abc_servers
}
}The idea being that:
for users browsing to www.website.com/content1 >> they go to the content_pool_1 servers, everything else goes to content_pool_2 servers
But after I enable the rule, I keep getting 404 errors in server in content_pool_2.
The Virtual Server currently points to content_pool_2... how do I/do I need to somehow point the Virtual Server to both content_pool_1 and content_pool_2?
Right now, content_pool_1 isn't assigned to a Virtual Server... does it need to be?
Doesn't seem like this should be so difficult...
47 Replies
- r_dynamo_79563
Nimbostratus
It's a BIGIP LTM 3600, it's not hiding on top of Resources. From Resources, I have
Default Pool
Default Persistence
Fallback Persistence
iRules
HTTP Class Profiles - What_Lies_Bene1
Cirrostratus
Weird, can you reselect Virtual Server type Standard and hit Update to see if anything changes? - r_dynamo_79563
Nimbostratus
No change. It's the same, in fact I went through all the options in the same drop down menu with 'Standard', and I wasn't able to find Stream Profile. Funnily enough, I can create a Stream profile, but I don't see anyway of associating it with the VS.
r_dynamo - hoolio
Cirrostratus
Are you viewing the advanced settings of the VS properties? Do you have a full LTM license or LBL or Edge?
Can you try adding the default stream profile to the virtual server using tmsh and reply back with any errors you see?
tmsh
modify ltm virtual my_vs profiles add { stream }
Aaron - r_dynamo_79563
Nimbostratus
Apologies, so sorry for wasting time. Yes, I found the setting under Advanced configuration. I'll try the stream profile, and iRule provided by 'Steve', and get back soon.
r_dynamo - r_dynamo_79563
Nimbostratus
ReadResponse() failed: The server did not return a response for this request.
This is the response I receive by configuring a stream profile for VS 443 along with the corresponding stream iRule, and applying the other rewrite/iRule for VS 80 as per earlier suggestion. - r_dynamo_79563
Nimbostratus
Can something to the effect of cookie based load balancing be achieved without SSL termination from the F5? Can a OneConnect profile be of use here?
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