ACE - Defining multiple web sites on same VIP

Unanswered Question
Apr 21st, 2009

Hi,

Currently the following config works with single website running on SERVERFARM1. There is a new requirement to host multiple websites on the same SERVERFARM1. Since the VIP would be the same, what additional statements do I need to enter into the class-map to match the host header values other than the VIP.

class-map match-all VIP-SITE1

2 match virtual-address 192.168.160.1 tcp eq www

policy-map type loadbalance first-match LB-SITE1

class class-default

sticky-serverfarm SERVERFARM1

policy-map multi-match LB-VIP-FROM-CLIENT

class VIP-SITE1

loadbalance vip inservice

loadbalance policy LB-SITE1

loadbalance vip icmp-reply

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
dario.didio Tue, 04/21/2009 - 05:43

If you want to match on the host-header, following config should work:

serverfarm host SERVERFARM1

...

class-map match-all VIP-SITE

2 match virtual-address 192.168.160.1 tcp eq www

class-map type http loadbalance match-any SITE1

match http header Host header-value http://www.site1.com

class-map type http loadbalance match-any SITE2

match http header Host header-value http://www.site2.com

class-map type http loadbalance match-any SITE3

match http header Host header-value http://www.site3.com

policy-map type loadbalance http first-match SITE_L7_POLICY

class SITE1

serverfarm SERVERFARM1

class SITE2

serverfarm SERVERFARM1

class SITE3

serverfarm SERVERFARM1

policy-map multi-match VIPs

class VIP-SITE

loadbalance vip inservice

loadbalance policy SITE_L7_POLICY

loadbalance vip icmp-reply active

HTH,

Dario

Actions

This Discussion