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.
- greg_chew_11034
Nimbostratus
i think you have a space after the end of - chris__sisler_1
Nimbostratus
Thanks, this worked! - Brian_Gupta_115
Nimbostratus
For a slight variation check out this thread:
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