Forum Discussion
chris__sisler_1
Nimbostratus
Oct 04, 2005irule that routes to multiple domain names
I can't seem to get the syntax right for this rule, so I thought I would bother the forum for a nice concise answer, hopefully! I want to have an irule that splits 1 VIP into multiple domain names. I have been working on the following rule:
when HTTP_REQUEST {
if { [HTTP::host] eq "www.domain1.com" } {
pool domain1 }
elseif { [HTTP::host] eq "www.domain2.com" } {
pool domain2 }
}
Thanks in advance for anyone's help regarding this inquiry!
Regards,
Chris S.
3 Replies
- greg_chew_11034
Nimbostratus
i think you have a space after the end of
elseif { [HTTP::host] eq "www.domain2.com" } {
remove that space and it should work better.. - chris__sisler_1
Nimbostratus
Thanks, this worked! - Brian_Gupta_115
Nimbostratus
For a slight variation check out this thread:
Click here http://devcentral.f5.com/Default.aspx?tabid=28&forumid=5&postid=3143&view=topic
-Brian
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