Forum Discussion
shawn306_84070
Nimbostratus
Apr 21, 2010HELP !!!! With I rule
I have been asked to created a vip that will load balance a pair of biztalk servers. ppreciated.
I created the VIP and everything looked great. It was load balancing very nicely and the http redirect irule I created was working fine.
when HTTP_REQUEST {
if { [HTTP::host] eq "bttst"} {
HTTP::redirect "]"
}
}
Here is where the problems began. When you typed it brought up a login prompt. If you went directly to the the server, i.e https://biztalk-01.abc.com it did what it was supposed which was bring up the ESB Management Console.
So from that point I created a simple irule that would redirect the traffic to just that one server.
when HTTP_REQUEST {
HTTP::header replace Host "biztalk-01.abc.com"
}
This irule worked fine. It redirected the request directly to that server and everything worked fine.
Now I have to add the the other server biztalk-02.abc.com to the irule.
I looked around, downloaded the irule editor. From what I gather it looks like I have to create a datagroup with both servers in the group and then create the irule using the datagroup as a reference.
I found a couple of posts that I thought might be of help to me I just don't totally understand them.
http://devcentral.f5.com/Wiki/defau..._name.html
https://devcentral.f5.com/Default.a...&aft=27386
If anyone out there can give me a hand on this it would be greatly a
Thanks
Shawn
- hoolio
Cirrostratus
Hi Shawn, - shawn306_84070
Nimbostratus
When you say codeshare are you talking about the irule you created ? - hoolio
Cirrostratus
Yeah, the example iRule is in the iRule Codeshare: - shawn306_84070
Nimbostratus
Thanks Aaron, - hoolio
Cirrostratus
Hi Shawn, - shawn306_84070
Nimbostratus
It looks like the authentication prompt is what is the problem. - shawn306_84070
Nimbostratus
Finally got it to work !!!!!
The script you recommended Aaron worked great. I just had to make a change in the string using the ip address and the servername instead of the fully qualified domain name to eliminate the login prompts.
Can't thank you enough.
Shawn
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