CSS Content Rule Configuration

Unanswered Question
Nov 24th, 2009
User Badges:

I have a scenario I am trying to accomplish if all possible with a

CSS 11503.


Example I have 2 URLS (i.e www.abc.com and www.xyz.com). Both urls reside on the same appliance that resolve to different IPs, 10.1.1.2 and 10.1.1.3, respectively. I have a content rule created with VIP 172.16.1.2 that both services 10.1.1.2 and 10.1.1.3 are added to. Is there a way to configure the content rule where when Client A goes to www.abc.com the content rule sends the request to 10.1.1.2 and if Client B goes to www.xzy.com it sends the request to 10.1.1.3.


Thank you.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
busterswt Wed, 12/02/2009 - 20:08
User Badges:
  • Bronze, 100 points or more

So long as you're using a cleartext port (or decrypting SSL on the CSS), it should be possible to do what you're wanting to do by using layer 7 content rules. Example:



service 10.1.1.2-serverA

ip address 10.1.1.2

active


service 10.1.1.3-serverB

ip address 10.1.1.3

active


----


owner vip


content 172.16.1.2-www.abc.com

vip address 172.16.1.2

no persistent

url "//www.abc.com/*"

add service 10.1.1.2-serverA

active



content 172.16.1.2-www.xyz.com

vip address 172.16.1.2

no persistent

url "//www.xyz.com/*"

add service 10.1.1.3-serverB

active



content 172.16.1.2-everything-else

vip address 172.16.1.2

no persistent

add service 10.1.1.2-serverA

add service 10.1.1.3-serverB

active


----


The CSS will process content rules by 'most specific' first. Requests to either www.abc.com or www.xyz.com will get processed by their specific content rules, and everything else will be caught by the less specific rule. Hope that helps!


James

Actions

This Discussion